carouselapps_table_builder icon indicating copy to clipboard operation
carouselapps_table_builder copied to clipboard

Use Time.current

Open brendon opened this issue 11 years ago • 3 comments
trafficstars

To prevent time zone errors use Time.current instead of Time.now as per: http://www.elabs.se/blog/36-working-with-time-zones-in-ruby-on-rails

Time.now returns the system time not the time in the currently set time zone.

brendon avatar Nov 01 '14 05:11 brendon

Hey, can this be merged in, and a new gem released please?

If you don't have time, just add me as a collaborator on the repo and I'll do it for you :)

brendon avatar Dec 03 '14 20:12 brendon

+1 or Time.zone.now

reicheltd avatar Feb 25 '16 14:02 reicheltd

I ended up not using table_builder anymore. Using full_calendar instead. Was a bit of a mission to change out but it worked well in the end. It might pay to fork this codebase and fix it in your version instead since it doesn't see any active development.

brendon avatar Feb 25 '16 20:02 brendon