Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The trick simply was to temporarily shift the date by the difference between the local time and the edited time zone. :)

If you're near a change in daylight savings then that will go wrong.



Yeah, not to be rude (we've all been there) but that hack is bound to be borken somehow.

Really this time & timezone stuff should be handled by the OS, system calls or libs should be more sophisticated so we aren't "solving" these problems over and over again.

But I'm about to start ranting about Unicode, so I'll shut up now... ;-)




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

Search: