I have time setup as such in weblog configuration:
;; Time stuff
;; ----------
; You can use a timezone value from the "TZ database name" column on this
; web page: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
Timezone: US/Pacific
Date format: F j, Y g:i A
which gives the correct time for the date used in the post itself. However, the $relative_date that I use in Recent Posts, which I just happen to have placed right below the published date for a post, is off by 8 hours.
I donât have a good example right now, because at this point my most recent post (Apple Annieâs Weblog ¡ Hello Drafts!) just shows as a day ago. But yesterday, moments after publishing it, it was listed as 8 hours ago in Recent Posts.
Note: my local time (in the screenshot above you can see in the iPad menu bar at the top) is not 8:22pm, but the relative time there was â2 minutes agoâ.
That was straight out of weblog, not using anything sent from Drafts (just FYI in case that was in question), with Date: $date producing Date: 2023-03-12 20:22 which is not my local time. If I edit that now, and make it my local time, then relative date is off by 8 hours. I see now that if I send from Drafts, I get the correct post metadata, but the incorrect relative time happens. If I donât, and it comes from Date: $date in weblog, then the date on the post itself is wrong, but the relative time is right!
Heh, no worries! So, I actually just fixed this. The issue was really silly⌠it turns out that on that Wikipedia page that I said to reference to find your timezone, the rows in pink that were âlinksâ to other timezones werenât actually working. US/Pacific is one of those, and thatâs the timezone in use on your weblog. Itâs a pointer to America/Los_Angeles, which incidentally is the timezone that Bix was using. And that explains why relative times were displaying ok Bixâs weblog but not yours.
Iâve just now fixed this by coding in all of the links to the different timezones, so now everything points to what it should point to, and things should âjust workâ â though you may need to re-publish your weblog for the change to take effect (to do this, just pull up your configuration and click Save â no need to make any changes; that will trigger a rebuild).
Sorry for the headache there, and thanks for helping me to stamp out yet another bug!
Hah, Iâve been doing that too all over the place! Donât sweat it, though â fortunately Discourse makes it easy to see all new activity and such, so I wonât miss anything. No worries!