Skip to content

Commit

Permalink
fix coordinates JSON view, closing #31
Browse files Browse the repository at this point in the history
  • Loading branch information
saerdnaer committed Aug 27, 2018
1 parent 2458d2a commit a3f4b59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MYR_rails/app/models/coordinate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a3f4b59

Please sign in to comment.