diff --git a/MYR_rails/app/models/coordinate.rb b/MYR_rails/app/models/coordinate.rb index bd19bc3..246bf17 100644 --- a/MYR_rails/app/models/coordinate.rb +++ b/MYR_rails/app/models/coordinate.rb @@ -21,7 +21,8 @@ def self.to_csv(options = {}) end def datetime_as_time - Time.strptime("#{datetime}UTC",'%Y%m%d%H%M%S%z') + #Time.strptime("#{datetime}UTC",'%Y%m%d%H%M%S%z') + Time.strptime(((datetime.to_f).round).to_s+"UTC", "%Y%m%d%H%M%S%z") end end