Skip to content

Commit

Permalink
Fixes #8 - RippleTimeToISOTime returns ISO Time in UTC timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
pkcs8 committed Sep 10, 2024
1 parent 130ddc3 commit 4e11916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func UnixTimeToRippleTime(unixTime int64) int64 {
// Convert a Ripple timestamp to an ISO8601 time.
func RippleTimeToISOTime(rippleTime int64) string {
unixTime := RippleTimeToUnixTime(rippleTime)
return time.Unix(unixTime, 0).Format(time.RFC3339)
return time.Unix(unixTime, 0).UTC().Format(time.RFC3339)
}

// Convert an ISO8601 timestamp to a Ripple timestamp.
Expand Down

0 comments on commit 4e11916

Please sign in to comment.