i have a problem with wordpress:
there is an input field of type 'time', where the value currently looks like:

<?php echo strftime('%H:%M', $event_time_from); ?>

My issue is that it counts an hour up each time the post is saved, does anybody know why? Tried to put date_default_timezone_set('Europe/Berlin'); there too without a difference... .

but i also needed the date_default_timezone_set("Europe/Berlin"); because otherwise it was counting backwards in production haha

now got a report that it counts two hours back... veeeery funny, i tested it multiple times -.-


got a followup that it only affects the frontend which i just assumed was fine^^

Sign in to participate in the conversation

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!