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)
Change History (11)
by , 3 years ago
Attachment: | WebPositive.PNG added |
---|
by , 3 years ago
Attachment: | Firefox.PNG added |
---|
comment:1 by , 3 years ago
Component: | Kits/Web Kit → Website |
---|---|
Owner: | changed from | to
Version: | R1/beta3 |
comment:2 by , 3 years ago
Yes, the time is correct on Haiku and my host system. I pulled them up at the same time to compare.
by , 3 years ago
Attachment: | datetest.html added |
---|
comment:4 by , 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 , 3 years ago
Attachment: | datetest.PNG added |
---|
follow-up: 6 comment:5 by , 3 years ago
Ran ans screenshot attached that includes results, system time, and host time. Timezone is CST.
comment:6 by , 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 , 3 years ago
The fix is replacing gmtime with localtime here: https://github.com/haiku/haikuwebkit/blob/haiku/Source/WebCore/loader/FTPDirectoryParser.cpp#L159
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.