Offline
Online
Viewers 0
ΞVΞ🦋ÇÖDΞŞ

my blog, journal & creative work

Crosspost to Inkwell — Technical Changelog (continued)

Written on March 16, 2026 by ΞVΞ🦋

Categories: Project

Tags: , ,

03/16/26 — Bug Fixes

Timezone fix for Social Notes title fallback

  • Social Notes crossposted to Inkwell were timestamped 4 hours behind the correct local time
  • Root cause: $post->post_date is already converted to the site’s local timezone but stored as a plain string with no timezone info — strtotime() was interpreting it as UTC, then wp_date() was converting it again, doubling the UTC offset
  • Fix: switched to $post->post_date_gmt (true UTC) with UTC appended so PHP parses it unambiguously, then wp_date() converts it to the site’s configured timezone in a single clean pass
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

Recent Comments

  • ΞVΞ🦋 on
  • ΞVΞ🦋 on
  • ΞVΞ🦋 on
  • ΞVΞ🦋 on
  • ΞVΞ🦋 on

🗓️

Your browser doesn't support the HTML5 CANVAS tag.

0
Would love your thoughts, please comment.x
()
x