What's the right way of setting a valid timezone when using plone.app.event?

StackOverflow https://stackoverflow.com/questions/23349397

  •  11-07-2023
  •  | 
  •  

Вопрос

After installing plone.app.event v1.1 I see a bunch of warning messages on the log:

2014-04-28 16:06:11 WARNING plone.event The timezone BRT is not a valid timezone from the Olson database or pytz. Falling back to UTC.

I see there's a new control panel configlet, but I am wondering if there's another way of setting this outside of Plone. Environment variable? Buildout?

In the end, this BRT timezone information should be coming from the OS.

Это было полезно?

Решение

In fact the problem is just lack of documentation on the package.

The only thing you need is set up the TZ environment variable with the right value:

export TZ="Brazil/East"

Другие советы

You need to choose from one of the time zones in this list.

If by "BRT" you mean Brasilia Time, then you should use "America/Sao_Paulo".

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top