If you don't hate time zones, you're not a real programmer.
— Josh Susser (@joshsusser) October 15, 2012
The pains of working with timezones often hide themselves unless you’re developing something for an overseas client, or an international audience. This is especially true when working with dates that fall in-between days and/or weeks (ie. Sunday/Monday 00:00). Don’t forget to think about these edge cases!
In order to avoid this issue, I came up with this simple JS helper function, that will convert a standard timezone-less date string (ie. ‘2013/01/24’ or ‘2014-04-10 10:23:45’) and convert it to the users current timezone: