This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Javascript Date Magic: | |
I needed to find whether the current time is EST or EDT. Yes, our server is down locally after 9 PM, but the communication is Async with server and needed to know when the user makes the request is any time zone, is it before end of business day to enable/disabled features. | |
Moment.js and Moment-timezone.js came out handy and exactly provided the offset. | |
http://momentjs.com | |
https://github.com/moment/moment-timezone/ |