Opened 3 years ago

Last modified 3 years ago

#17111 new bug

haiku-os.org renders "-1 days ago" under Source Activity

Reported by: Coldfirex Owned by: haiku-web
Priority: normal Milestone: Unscheduled
Component: Website Version:
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Using WebPositive when https://www.haiku-os.org/ is loaded under the Source Activity tab, it will sometimes display a change as "-1 days ago". If I view t with FF or Chrome at the same time it shows up correctly ("2 hours ago" in this example). Beta 3 RC1 (hrev55181+51) 64bit.

Attachments (4)

WebPositive.PNG (108.0 KB ) - added by Coldfirex 3 years ago.
Firefox.PNG (16.1 KB ) - added by Coldfirex 3 years ago.
datetest.html (244 bytes ) - added by madmax 3 years ago.
datetest.PNG (257.8 KB ) - added by Coldfirex 3 years ago.

Download all attachments as: .zip

Change History (11)

by Coldfirex, 3 years ago

Attachment: WebPositive.PNG added

by Coldfirex, 3 years ago

Attachment: Firefox.PNG added

comment:1 by madmax, 3 years ago

Component: Kits/Web KitWebsite
Owner: changed from pulkomandy to haiku-web
Version: R1/beta3

Is your system clock correct? That happens when the commit date is in the future, whatever the browser. Those first commits would be 3 or 4 hours in the future, given the times for the others.

It is possible to change the website to show "just now" instead of "-1 days ago" in that case, but the times for the rest would still be wrong.

comment:2 by Coldfirex, 3 years ago

Yes, the time is correct on Haiku and my host system. I pulled them up at the same time to compare.

comment:3 by kallisti5, 3 years ago

sounds like an issue in the code translating timezones.

by madmax, 3 years ago

Attachment: datetest.html added

comment:4 by madmax, 3 years ago

Yep.

Could you report on the result of loading that test file, and your system time and timezone when you did?

by Coldfirex, 3 years ago

Attachment: datetest.PNG added

comment:5 by Coldfirex, 3 years ago

Ran ans screenshot attached that includes results, system time, and host time. Timezone is CST.

in reply to:  5 comment:6 by madmax, 3 years ago

Replying to Coldfirex:

Timezone is CST.

But you have Haiku setup as being in GMT time zone, which means its clock is 6 hours in the future (or probably 5 if you are observing DST and you are in fact in CDT now instead of CST).

Please correctly set your timezone in the Time zone tab of the Time preferences. I don't know how VirtualBox shares the clock with the host, you may have to set some option there, or maybe the "Hardware clock set to Local time (Windows compatible)" in the Time preferences is enough.

comment:7 by pulkomandy, 3 years ago

Last edited 3 years ago by pulkomandy (previous) (diff)
Note: See TracTickets for help on using tickets.