Episodes
atstockland said about 1 year ago on Working with Time Zones :
My users create daily logs for various industry activities....and, they move around the country from day to day.  They may start the day in one time zone, and end in another.  I've never found a simple reliable solution to a time input that includes a related time zone select.  I have a working solution that I rolled, but I'd rather use a more Rails way with less code.  Any suggestions on how to handle such a scenario?  :)

David Kimura PRO said about 1 year ago on Working with Time Zones :
  atstockland  I recommend to always store the log time as UTC in the database. Along with the record store the time zone that the time was logged in. The nice thing about storing the time in UTC is that you can easily do math on the times and find durations or overlaps. You would basically use presenters to display the records in the time zones of the records.

Login to Comment