Forum time travel
It's probably more amusing than serious, but is there an inconsistency in the system time between the database and website? Until now I've never seen the forum tell me that comments will be posted in the future.
https://image.ibb.co/mWnAJQ/time_travel.png
Ref: https://tramper.nz/?view=topic&id=922&offset=21
13 comments
11–13 of 13
Page: 12
Looks to me like it's the time on the reader's PC. That 'in # hours' is not in the page source ('view page source') which just shows the date-time. So it looks as if the 'in # hours'/'# hours ago' is calculated using javascript on the client-side when you read the post. So I see everyone else posting 'in 11 hours' , as I'm on UTC.
The timestamp for my posts (that shown in the page source before it gets java-magic'd into 'in 11 hours') is correct current time for NZ, so I guess the actual message timestamp is generated at the server.
Duh! I didnt think to look at the page source code - well done, madpom.
... but it begs the question - why are you on UTC?
Good detective work! The time descriptions are actually done in the browser. If your timezone is not NZ then they are incorrect.
I have a fix for this ready for the next update. Basically, the time comparison just needed to be timezone-aware.
11–13 of 13
Page: 12
Search the forums
Forum | This website |
---|---|
Started by | izogi |
On | 24 June 2017 |
Replies | 12 |
Permanent link |
Participation in the forums signifies acceptance of forum rules.
In order to manage spam, new members are limited to 1 post every 10 minutes.
Formatting your posts
The forums support MarkDown syntax. Following is a quick reference.
Type this... | To get this... | |
---|---|---|
Italic | *Italic text* | *Italic text* |
Bold | **Bold text** | **Bold text** |
Quoted text | > Quoted text | > Quoted text |
Emojis | :smile: :+1: :astonished: :heart: | :smile: :+1: :astonished: :heart: |
Lists |
- item 1 - item 2 - item 3 |
- item 1 - item 2 - item 3 |
Links | https://tramper.nz | https://tramper.nz |
Images | ![](URL/of/image) URL/of/image |
![](/whio/image/icons/ic_photo_black_48dp_2x.png) |
Mentions | @username | @username |