This doesn't handle daylight saving time.
It does take care of DST: http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp
https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
11–19 of 19 posts
This doesn't handle daylight saving time.
It does take care of DST: http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp
https://developer.mozilla.org/en-US/docs/JavaScript/Referenc...
This doesn't handle daylight saving time.
It does take care of DST: http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp
getTimezoneOffset() gives you the offset with the DST accounted and will be a different time when DST is off.
Earlier quoted context omitted.
It does take care of DST: http://www.w3schools.com/jsref/jsref_gettimezoneoffset.asp
Wouldn't it be a better idea to store the timezone and then account for the DST at the server side? https://bitbucket.org/pellepim/jstimezonedetect getTimezoneOffset() gives you the offset with the DST accounted and will be a different time when DST is off.
Except for the friday/fri thing, which, to be honest, I don't see the point of. I'd rather have uniformity in my code.
Isn't the ScheduleTime class doing redundant work? Why bother keeping a dictionary, dealing with ints and strings when you can directly use strftime/strptime? Except for the friday/fri thing, which, to be honest, I don't see the point of. I'd rather have uniformity in my code.
Did anyone else read this title as: 'Scheduling morning meals with Python and Celery'?
Earlier quoted context omitted.
Wouldn't it be a better idea to store the timezone and then account for the DST at the server side? https://bitbucket.org/pellepim/jstimezonedetect getTimezoneOffset() gives you the offset with the DST accounted and will be a different time when DST is off.
When it comes to scheduling emails, what we want is user's to get emails at a specific time as exactly as possible. For this all we need is the UTC timezone offset including DST, which javascript gives us. The jstimezonedetect script is a good one if we wan't to know the real timezone. Problem here is we wouldn't know how often this script could remain updated. Any change in DST will have to be provided by the script…