ckolderup / postmarks

a single-user bookmarking website designed to live on the Fediverse
https://postmarks.glitch.me
MIT License
465 stars 38 forks source link

timezone bug - assumes server time is UTC #59

Closed ckolderup closed 1 year ago

ckolderup commented 1 year ago

bookmarks show up as existing in the past on self-hosted instances

benbrown commented 1 year ago

This applies to the feed as well. I did some work in my instance to make sure the date is formatted in ISO format so the timezone stuff is respected by consumers.

ckolderup commented 1 year ago

@benbrown I just opened #114 -- do you think this approach will cause problems?

benbrown commented 1 year ago

@ckolderup Does appending the Z indicate that it is in UTC? I am not that much of an expert alas.

benbrown commented 1 year ago

OK I took a look at the PR, yes I think this is good.

ckolderup commented 1 year ago

yep, 'Z' is shorthand for +00:00.