Skip to content

Commit 7642ff3

Browse files
committed
CLC-1055: Include ms in returned timestamps
1 parent 32d8a6c commit 7642ff3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cielo24_gem/lib/cielo24/web_utils.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ def self.to_utc(s)
5050
tz = TZInfo::Timezone.get(SERVER_TZ)
5151
local = DateTime.iso8601(s)
5252
utc = tz.local_to_utc local
53-
utc.iso8601
53+
format = '%Y-%m-%dT%H:%M:%S.%L%z' # iso8601 with milliseconds
54+
utc.strftime(format)
5455
end
5556
end
5657

0 commit comments

Comments
 (0)