Crosspost to Inkwell — Technical Changelog (continued)

ΞVΞ🦋
ΞVΞ🦋
1 min read

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
ΞVΞ🦋
ΞVΞ🦋

@eve · Blogger • Artist • Cellist • Gamer • IT chick • Feminist • 🍉📍 NY

← Feed

Marginalia