mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-07 08:21:47 +01:00
Merge branch 'timezones' of git://github.com/epall/tracks into master.
Re-wrote all Date-related code to use Datetimes, created a migration to get rid of all date columns in the database, and got rid of Time.now calls that were not time zone-aware. Lots of time zone goodness!
This commit is contained in:
commit
ba9a9370cc
21 changed files with 111 additions and 78 deletions
|
|
@ -175,7 +175,7 @@ class ApplicationController < ActionController::Base
|
|||
if show_from_date.nil?
|
||||
todo.show_from=nil
|
||||
else
|
||||
todo.show_from = show_from_date.to_time < Time.now.utc ? nil : show_from_date
|
||||
todo.show_from = show_from_date < Time.zone.now ? nil : show_from_date
|
||||
end
|
||||
|
||||
saved = todo.save
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue