Date issue when using UTC time on server

  • Last Post 23 November 2020
ZilchGuy posted this 21 November 2020

OS Name/Version:

Debian GNU/Linux 10 (buster)

Product Name/Version:

AMP Release "Europa" v2.0.8.2

Problem Description:

Server is set to UTC time as recommended. My local time is UTC-6.

When viewing the audit log and console log the time is correct, but the date is one day ahead when the local time is after 6:00pm (UTC time is after 00:00).

Steps to reproduce:

This behavior is consistent when using Firefox browser.

Actions taken to resolve so far:

Tested with the new Edge browser, same results.

Completely reinstalled OS and AMP, no change.

I have also noticed that the same thing happens with the file dates when using file manager.

Order By: Standard | Newest | Votes
Mike posted this 21 November 2020

That's what I'd expect? If you're at UTC-6 then after 6PM it's the next calendar day in UTC.

18:30 on Dec 1st in UTC-6 is 00:30 on Dec 2nd in UTC.

ZilchGuy posted this 21 November 2020

Yes, I understand that, but I was under the impression that the time and date was supposed to be displayed in local time in the browser. Is that not correct?

The time is converted to local time correctly, but the date is not.

Mike posted this 23 November 2020

Hmm, interesting. I'll have to check this out.