MODX Community

Context setting date_timezone is ignored for resources Un/Publish Date

Summary

Before opening an issue on GitHub I would like to know how other MODX developers handle multiple contexts that “take place” in different timezones.

In my case I have a

  1. server running on UTC (system setting empty or UTC doesn’t make a difference)
  2. context .de with a context setting date_timezone Europe/Berlin
  3. context .co.uk with a context setting date_timezone Europe/London

I expected that the different date_timezone settings would be taken in account for resources Un/Publish dates, but it doesn’t look like that’s the case.

What I want to achieve is that when you set a Publish Date for a resource in context .de that it will be published at Europe/Berlin and when you set a Publish Date for a resource in context .co.uk it will be published at Europe/London - but it looks like both are published at UTC.

Environment

MODX 2.7.1, PHP 7.2, Apache and NGINX, MySQL 5.7.26

2 Likes

Hi @labr1005,

Welcome to the modx community!
Seems related to what I published recently.
Have a look here:

locale and time_zone are apparently not called on context switch.

I will also have to open a bug report for the locale.
Hope that helps.

Cheers

1 Like

Bug report opened for both problems: locale and date_timezone

1 Like