Comment on Ask HN: What are the *dynamic* needs for a static site these days?parentComments−waibelp9ySure, but can we trust the date and time of the client?−thenomad9y99% of the time, yes, I'd say.Having time/date wrong on your device - particularly a phone, which a lot of people use instead of a watch - is sufficiently annoying that it usually gets fixed.−waibelp9yGood point! I'll have a look into this, thanks!Edit: Great advice! Works like a charm! I've never really worked with dates in JS. Should have read the docs earlier ;-)
Comments
Sure, but can we trust the date and time of the client?
99% of the time, yes, I'd say.
Having time/date wrong on your device - particularly a phone, which a lot of people use instead of a watch - is sufficiently annoying that it usually gets fixed.
Good point! I'll have a look into this, thanks!
Edit: Great advice! Works like a charm! I've never really worked with dates in JS. Should have read the docs earlier ;-)