Not often do I get a chance to be the Master of Ceremonies for an event. Compèring for 2 events was a dream - in all honesty, a tiring but satisfying dream come true. Gophercon India and Dubai have now become sister events with a lot of common speakers. The second edition of Gophercon India … Continue reading From the stage of Gophercon India and Gophercon Dubai
blog
Are Your Workers Actually Working?
Sidekiq workers, status checks and much more explained very neatly by Pramod.
Time is an illusion but TimeZones are not.
Timezone configuration and management on the browser has never been easy. Here is some insight from Rishi
Learning shall never stop..!!!
Recently I have been working on handling timezones on a client project. Front end is AngularJs 1.3 and backend api is Rails api.
It is a very common scenario. User chooses what timezone the data should be displayed in. Api saves and returns all the dates in UTC format.
There are also a lot many client side validations comparing saved time with local time (in all permutation and combinations possible).
Tools used:
- Javascript Date object:
While working with timezones, it is always good to know that Javascript Date object is always in local time zone. There is no direct option to set the timezone. You can change time by adding/subtracting timezone offset.
- moment.js: moment is a javascript library which provides pretty options to format the moment date object which is not possible with javascript Date object.
- moment-timezone.js: This library allows you to convert moment time object in…
View original post 311 more words
