Hacker Newsnew | past | comments | ask | show | jobs | submit | ieze's commentslogin

This doesn't handle daylight saving time.



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 which if it doesn't there will be in-accuracies. Not to mention the trouble of keeping the script updated. But in general, the script is indeed awesome.


I believe that the point is: If you have the user's timezone, you can /know/ if they are in DST through modules such as pytz+datetime.



How long until Apple makes something the size on an iphone with the screen size of a note? (With some sort of magic, like the thinkpad butterfly keyboard.)


Also:

>By winning a prize in this event you agree to transfer ownership of your submission to TopCoder.

So do TopCoder resell the submission to NASA?


I'd be interested to read how your own views of people contrast with the ideas in https://en.wikipedia.org/wiki/How_to_Win_Friends_and_Influen...


In the UK a certain over-the-counter drug that can be used to commit suicide is only sold in quantities insufficient for suicide.

There is nothing to stop a person from going to several shops, but the measure is effective because that takes longer.


It's well meaning.

"Hearing about a suicide seems to make those who are vulnerable feel they have permission to do it" -- David Phillips https://en.wikipedia.org/wiki/Copycat_suicide

Unfortunately http://www.reddit.com/r/Music/comments/16e15s/i_transcribed_... was posted and front-paged yesterday.

Google returns a local suicide prevention line number when you google suicide. Perhaps social media sites should discourage posting on the subject at the time of submission, or trying to wrap such content with reminder to the readership that they matter.


It is more regrettable. I don't see suicide as a shame thing. Just very very sad.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: