-
-
Save anonymous/54229ffad079680c559b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def convert_timestamp_to_assume_utc_default(ts) | |
return ts if ts.size > 19 || ts =~ /Z/i | |
Time.iso8601(ts).iso8601.slice(0,19) + "Z" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment