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