[bugfix] Update time marshalling format to provide 3 digits of ms (#630)

This commit is contained in:
tobi 2022-06-04 20:03:01 +02:00 committed by GitHub
commit f3b44426f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 11 deletions

View file

@ -21,7 +21,7 @@ package util
import "time"
// ISO8601 is a formatter for serializing times that forces ISO8601 behavior.
const ISO8601 = "2006-01-02T15:04:05.00Z"
const ISO8601 = "2006-01-02T15:04:05.000Z"
// FormatISO8601 converts the given time to UTC and then formats it
// using the ISO8601 const, which the Mastodon API is able to understand.