Commit Graph
11 Commits
Author SHA1 Message Date
Xyphyn d02d8556d5 switch to mono-svelte Button component 2023-09-03 17:05:45 -07:00
Xyphyn 5cfc98188c misc: add modlog buttons 2023-08-22 18:22:47 -07:00
Xyphyn 7518c06410 fix: fix profile system 2023-08-22 17:17:51 -07:00
Thomas J Faughnan Jr 34c712c01c fix: parse date strings as UTC
For posts, comments, and other objects, the `published` attribute is a
string containing an ISO 8601 timestamp. This timestamp is UTC, though
it is not explicit in the string's contents. When the `Date` constructor
is used on such strings, they are parsed as though they are local
timestamps. According to [1]:

> When the time zone offset is absent, date-only forms are
> interpreted as a UTC time and date-time forms are interpreted as local
> time. This is due to a historical spec error that was not consistent
> with ISO 8601 but could not be changed due to web
> compatibility.

This patch explicitly appends a 'Z' to the `published` string when it is
used as the argument to the `Date` constructor.

[1]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
2023-07-28 20:02:01 -04:00
Xyphyn 19c4b1a4fa fix: Fix #27 2023-07-26 14:57:17 -07:00
Xyphyn 5024e9edf1 feat: add #20 2023-07-26 12:45:34 -07:00
Xyphyn e243848e17 misc: Change the way buttons are handled 2023-07-19 13:43:18 -07:00
Xyphyn 8eb1e46d30 feat: Add version to footer 2023-07-14 15:58:37 -07:00
Xyphyn 9770f15ce6 misc: Tweak design 2023-07-14 15:31:08 -07:00
Xyphyn 18010722a2 feat: Switch to getSite().my_user instead of a hacky workaround 2023-07-13 10:51:11 -07:00
Xyphyn 6181c5138a why the heck is the site card breaking 2023-07-06 18:32:53 -07:00