On 24 July 2013 15:41, Christian Mack <[email protected]> wrote: > Hello Odhiambo Washington > > > Am 2013-07-02 13:01, schrieb Odhiambo Washington: >> >> I have SOGoTimeZone = "Africa/Nairobi"; in sogo.conf >> >> I enabled sogo-ealarms-notify in my cron and it keeps sending these: >> >> >> 2013-07-02 11:03:02.314 sogo-ealarms-notify[21090] No local time zone >> specified. >> 2013-07-02 11:03:02.334 sogo-ealarms-notify[21090] Using time zone with >> absolute offset 0. >> >> Do I need to specify the TZ in another file? >> > > Is your cronjob executed as user sogo?
Hi Christian, That is correct. I have the following in /etc/crontab: * * * * * sogo /usr/local/GNUstep/Local/Tools/Admin/sogo-ealarms-notify ..and if I run the cron as sogo user: root@gw:/usr/home/wash # su - sogo [sogo@gw ~]$ /usr/local/GNUstep/Local/Tools/Admin/sogo-ealarms-notify 2013-07-24 13:02:31.663 sogo-ealarms-notify[17614] No local time zone specified. 2013-07-24 13:02:31.664 sogo-ealarms-notify[17614] Using time zone with absolute offset 0. However, if I specify the TZ enviroment variable, it doesn't complain: [sogo@gw ~]$ export TZ="Africa/Nairobi" [sogo@gw ~]$ env SHELL=/usr/local/bin/bash TERM=linux USER=sogo FTP_PASSIVE_MODE=YES PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/var/db/sogo/bin MAIL=/var/mail/sogo BLOCKSIZE=K PWD=/var/db/sogo TZ=Africa/Nairobi SHLVL=1 HOME=/var/db/sogo _=/usr/bin/env [sogo@gw ~]$ /usr/local/GNUstep/Local/Tools/Admin/sogo-ealarms-notify [sogo@gw ~]$ So I simply added the env variable to /etc/crontab and silenced it in the meantime. I have SOGoTimeZone = "Africa/Nairobi"; in sogo.conf, but that seems to be ignored. The platform is FreeBSD, if that matters. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler." -- [email protected] https://inverse.ca/sogo/lists
