Skip to content

Commit 4e11916

Browse files
committed
Fixes #8 - RippleTimeToISOTime returns ISO Time in UTC timezone
1 parent 130ddc3 commit 4e11916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conversion.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func UnixTimeToRippleTime(unixTime int64) int64 {
2525
// Convert a Ripple timestamp to an ISO8601 time.
2626
func RippleTimeToISOTime(rippleTime int64) string {
2727
unixTime := RippleTimeToUnixTime(rippleTime)
28-
return time.Unix(unixTime, 0).Format(time.RFC3339)
28+
return time.Unix(unixTime, 0).UTC().Format(time.RFC3339)
2929
}
3030

3131
// Convert an ISO8601 timestamp to a Ripple timestamp.

0 commit comments

Comments
 (0)