Skip to content

Commit a3f4b59

Browse files
committed
fix coordinates JSON view, closing #31
1 parent 2458d2a commit a3f4b59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MYR_rails/app/models/coordinate.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def self.to_csv(options = {})
2121
end
2222

2323
def datetime_as_time
24-
Time.strptime("#{datetime}UTC",'%Y%m%d%H%M%S%z')
24+
#Time.strptime("#{datetime}UTC",'%Y%m%d%H%M%S%z')
25+
Time.strptime(((datetime.to_f).round).to_s+"UTC", "%Y%m%d%H%M%S%z")
2526
end
2627
end
2728

0 commit comments

Comments
 (0)