Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Time(zones) - There, Here, Then, Now & Back Again

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Time(zones) - There, Here, Then, Now & Back Again

Handling time zones, time, daylight savings, in our code - good times, right? Not really. For those of you who haven’t had to deal with these yet, or to varying degrees, this talk is for you. Why is this an issue? What tools are available to us? In my talk I’ll share the challenges I’ve run into and share some code that makes it a little easier.

Avatar for Joel Oliveira

Joel Oliveira

May 13, 2014

Other Decks in Programming

Transcript

  1. The Use Case • You start an online course •

    It starts tomorrow (actually, maybe next monday?) • You get your first message at 8am (maybe 9:30?) • You reply to the message (maybe?) • You receive a final reply to that days' message
  2. Mar 1 Mar 2 Mar 3 Mar 4 Mar 5

    Mar 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Joel : [ Day 1 ] [ Day 2 ] [ Day 3 ] [ Day 4 ] Ben : [ Day 1 ] [ Day 2 ] [ Day 3 ] [ Day 4 ]
  3. Day 1: Mar 1 @ 8:00am - Mar 2 @

    7:59am ! Day 2: Mar 2 @ 8:00am - Mar 3 @ 7:59am
  4. Mar 1 Mar 2 Mar 3 Mar 4 Mar 5

    Mar 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Joel : [ Day 1 ] [ Day 2 ] [ Day 3 ] [ Day 4 ] Ben : [ Day 1 ] [ Day 2 ] [ Day 3 ] [ Day 4 ]
  5. • https://github.com/rmm5t/jquery-timeago • https://github.com/mojombo/chronic • https://github.com/alindeman/zonebie • https://github.com/travisjeffery/timecop • http://www.elabs.se/blog/36-working-with-time-zones-in-

    ruby-on-rails • http://www.timescroller.com/About.html • http://everytimezone.com/ • http://brandonhilkert.com/blog/relative-timestamps-in-rails/ • https://gist.github.com/jayroh/4bf92b410d22c5369508