Skip to main content

Timeline for LiveDate version 2

Current License: CC BY-SA 3.0

22 events
when toggle format what by license comment
S Apr 28, 2015 at 9:52 history bounty ended CommunityBot
S Apr 28, 2015 at 9:52 history notice removed CommunityBot
Apr 27, 2015 at 15:04 answer added Madara's Ghost timeline score: 1
Apr 26, 2015 at 11:39 comment added Kid Diamond @MichaelZedeler The server returns a Unix timestamp, and Unix timestamps are universal. A Unix timestamp of 1430044657 would be the same across the entire world, so it doesn't matter what time zone either party is in. The timezone offset, offset, of the client is applied to the fetched Unix timestamp resulting in a correctly localized date.
Apr 26, 2015 at 10:36 comment added Michael Zedeler Scenario: the user is in GMT+1, the server is in GMT-7, the code is configured to use the servers time and the format is HH:MM. Lets say the local time is 20:00 at the user, yet the server claims it is 12:00. Thats just weird.
Apr 25, 2015 at 17:19 comment added Michael Zedeler Does this take into account that the browser and server may be in different time zones? If it doesn't, maybe it isn't very useful (I'm still a little unsure about the use case for this module).
Apr 24, 2015 at 7:39 history edited Kid Diamond CC BY-SA 3.0
added 17 characters in body
Apr 22, 2015 at 15:08 history tweeted twitter.com/#!/StackCodeReview/status/590894990366269440
Apr 22, 2015 at 14:36 comment added Kid Diamond @Vignesh Because JavaScript's Date object is only as reliable as the client system date, which you have no control of. So if their system date is inaccurate, so will the time returned by Date be. If you need a solution that displays the "real" time that's not affected by how the client system date is set, you can get the date from a (reliable) server. For instance, you might have a service that displays different live dates from all over the world. But if you rely on the client system date and it's not set correctly, every date shown by your service will be incorrect as well.
Apr 22, 2015 at 14:25 comment added Vignesh The code is pretty self explanatory, But I haven't came across a situation where I needed to fetch time from the server (beginner). So I am curious about a real use case.
Apr 22, 2015 at 14:20 comment added Kid Diamond @Vignesh Isn't it somewhat self-explanatory?
Apr 22, 2015 at 14:08 comment added Vignesh I don't understand about the practical use of this code, can you explain a typical use case?
Apr 21, 2015 at 13:26 history edited Kid Diamond CC BY-SA 3.0
added 353 characters in body
S Apr 20, 2015 at 8:32 history bounty started Kid Diamond
S Apr 20, 2015 at 8:32 history notice added Kid Diamond Draw attention
Apr 20, 2015 at 8:31 history edited Kid Diamond CC BY-SA 3.0
added 407 characters in body
Apr 19, 2015 at 15:14 history edited Kid Diamond CC BY-SA 3.0
added 204 characters in body; edited tags
Apr 18, 2015 at 17:27 history edited Kid Diamond CC BY-SA 3.0
code update
Apr 18, 2015 at 11:03 history edited Kid Diamond CC BY-SA 3.0
code update
Apr 18, 2015 at 10:22 history edited Kid Diamond CC BY-SA 3.0
updated code
Apr 18, 2015 at 8:29 history edited Kid Diamond CC BY-SA 3.0
added example
Apr 18, 2015 at 8:19 history asked Kid Diamond CC BY-SA 3.0