summaryrefslogtreecommitdiff
path: root/internal/util/time.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-28 19:59:55 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-28 18:59:55 +0100
commitae5402ada6aa794a69de455f745934b27e030d3d (patch)
tree93d228443da821b0b38cc1417742e65e92e5edec /internal/util/time.go
parent[frontend] Reduce width of profile img with screen width (#615) (diff)
downloadgotosocial-ae5402ada6aa794a69de455f745934b27e030d3d.tar.xz
[chore] Mastodon api fixups (#617)
* don't omitempty on description * don't omitempty on any fields * add ms to timestamp format * don't omitempty on text_url * rearrange attachment fields a bit * just give URL again as attachment text url * update tests * fix accidental replace
Diffstat (limited to 'internal/util/time.go')
-rw-r--r--internal/util/time.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/util/time.go b/internal/util/time.go
index d4d4ebf79..ec24853fb 100644
--- a/internal/util/time.go
+++ b/internal/util/time.go
@@ -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:05Z"
+const ISO8601 = "2006-01-02T15:04:05.00Z"
// FormatISO8601 converts the given time to UTC and then formats it
// using the ISO8601 const, which the Mastodon API is able to understand.