Page 1 of 1

[Solved] Date/time is off on all backup jobs

Posted: Thu Jan 02, 2020 4:01 pm
by fldx
I have verified that the date/time/timezone is correct in ubuntu, yet all of the times in the logs within the unimus dashboard show incorrect times. If I run a manual backup job right now (9:50am central) the dashboard will say that the job finished successfully but at 3:50pm. Im guessing unimus is using UTC time. Is there a spot within unimus that I need to set the correct timezone?

Thanks!

Re: Date/time is off on all backup jobs

Posted: Thu Jan 02, 2020 4:42 pm
by Tomas
Hi,

EDIT:
We have added an article on the Wiki that shows how to deal with TZ issues:
https://wiki.unimus.net/pages/viewpage. ... d=32800844

Unimus does indeed keep all server-side time in UTC, and all DB timestamps are in UTC.
However, all client-side time is transformed to the timezone that the browser tells the server it uses.

If you are seeing wrong times, most likely issue is that your browser is telling the server that you are using UTC.
You will want to check TZ settings on your workstation/PC, and if those TZ settings are properly delegated from your browser to the server.

You can check by issuing this command in your browser's console:

Code: Select all

console.log(new Date().getTimezoneOffset() / 60);
For example, for UTC-6, this would return -6.

EDIT:
We also have a Wiki article on how to check correct configuration server-side:
https://wiki.unimus.net/display/UNPUB/C ... ngtimezone

Re: Date/time is off on all backup jobs

Posted: Thu Jan 02, 2020 4:58 pm
by fldx
when I run that command in the chrome console I get back "6"

Code: Select all

console.log(new Date().getTimezoneOffset() / 60);
 6
I thought central US time was -6

Looks like my time zone and everything is correct on my machine. I tried to access the interface from a few other machines here on my network as well and get the same thing from all of them.

Its not really a big deal, the jobs still run which is the important part.

Re: Date/time is off on all backup jobs

Posted: Thu Jan 02, 2020 5:06 pm
by fldx
Also, It looks like all the timestamps on the posts in the forum here are correct.

I'm guessing that works off of a similar setup

Re: Date/time is off on all backup jobs

Posted: Thu Jan 02, 2020 5:09 pm
by Tomas
EDIT:
We have added an article on the Wiki that shows how to deal with TZ issues:
https://wiki.unimus.net/pages/viewpage. ... d=32800844

6 is the correct result there, so not a browser TZ issue.
The fact that you are seeing wrong timestamps on all clients is very strange.

Could you please create a ticket on the Portal, and we can schedule a Webex session to investigate directly.

Thanks!

Re: Date/time is off on all backup jobs

Posted: Thu Jan 02, 2020 5:20 pm
by fldx
Sure thing

Thanks Thomas!