Changeset 015ce46 in Klonkt for src/services/i18n.js


Ignore:
Timestamp:
06/21/2026 04:32:54 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
9effb80
Parents:
5a394e5
Message:

fix(inplannen): scheduled posts never went live + timezone bug

(1) Scheduler compared publish_at (ISO 'T..Z') string-wise with SQLite
CURRENT_TIMESTAMP ('YYYY-MM-DD HH:MM:SS'); because 'T' > space the condition
was never true → scheduled posts NEVER flipped to published. Now
datetime(publish_at) <= datetime('now') (both UTC, same format).
(2) datetime-local was stored as UTC without timezone → 18:10 CEST became
18:10 UTC (= 20:10 local). Now: client converts local input to UTC ISO on save,
pre-fills the field from UTC→local, and shows "Scheduled for" in readable local
time instead of raw UTC ISO.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/services/i18n.js

    r5a394e5 r015ce46  
    729729    'pedit.publish_at_label': 'Datum & tijd',
    730730    'pedit.scheduled_for': 'Ingepland voor {d}',
     731    'pedit.scheduled_prefix': 'Ingepland voor',
    731732    'pedit.cancel': 'Annuleren',
    732733    'pedit.publish': 'Publish',
     
    16871688    'pedit.publish_at_label': 'Date & time',
    16881689    'pedit.scheduled_for': 'Scheduled for {d}',
     1690    'pedit.scheduled_prefix': 'Scheduled for',
    16891691    'pedit.cancel': 'Cancel',
    16901692    'pedit.publish': 'Publish',
     
    26452647    'pedit.publish_at_label': 'Datum & Uhrzeit',
    26462648    'pedit.scheduled_for': 'Geplant für {d}',
     2649    'pedit.scheduled_prefix': 'Geplant für',
    26472650    'pedit.cancel': 'Abbrechen',
    26482651    'pedit.publish': 'Veröffentlichen',
Note: See TracChangeset for help on using the changeset viewer.