26.09.2016 19:00, Andrey Cherepanov ([email protected]) пишет:
> I install SOGo at system with localtime MSK (Europe/Moscow, GMT+3).
> There is all task filled with correct local time in web ui saved with -4
> hours in database. And show with incorrect value. User has Europe/Moscow
> in her settings.
>
> For example, create new task with From: 18:57
> Save and click to task. From: 14:57.
>
> All timezones (tzdata, timezone from gnustep-base, Moscow.ics from SOGo,
> database entry from pg_timezone_names) are correct - +0300
>
> How to debug it?
Answer to myself:
There is strange result of [NSTimeZone timeZoneWithAbbreviation: @"GMT"]
at SOPE/NGCards/NSString+NGCards.m:340 -

for GMT - Europe/Gibraltar
for UTС - Antarctica/Troll

pure gnustep-base timeZoneWithAbbreviation returns UTC in both cases.

I build package with replacement timeZoneWithAbbreviation with
timeZoneWithName and it works correct:

sed -i 's/timeZoneWithAbbreviation/timeZoneWithName/g' $(grep -Rl
timeZoneWithAbbreviation *)

-- 
Andrey Cherepanov
[email protected]
-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to