Autor Thema: Time zone problem (Solved)  (Gelesen 1143 mal)

0 Nutzer und 1 Gast betrachten dieses Thema.

Offline kgha

  • Vollprofi
  • *
  • Beiträge: 432
Time zone problem (Solved)
« am: 07.08.2009, 15:06:59 »
At work I use a webmail client with calendar (Zimbra). I have noticed that e-mails are marked with the wrong time and so are the entries in the calendar: e.g a meeting scheduled for 10.00 shows up as 06.00

I've checked the time settings in BIOS (correct, GMT + 2 hours). I've swithced from "Local Time" to "UTC" in fluxflux' clock setting panel, (again with the setting GMT + 2 hrs) but no difference.

However, when I enter

javascript:new Date()
in Firefox'  address bar I get

Fri Aug 07 2009 14:41:38 GMT-0200
This must be the cause for the four hours (GMT-0200 instead of GMT+0200)

But how can I change this? Should I edit the /etc/localtime file? Now it just contains

TZif2
Grateful for any help!

EDIT: The Zimbra platform allows me to switch between two interfaces: "Advanced (AJAX)" and "Standard (HTML)". If I switch to the Standard version, I get correct time stamps! But I would prefer the Advanced version, it's more convenient.
« Letzte Änderung: 08.08.2009, 20:05:28 von kgha »
"Ubuntu": an African word, meaning "Slackware is soooo difficult"
------------------------------------------------------------------------------------------
„Ubuntu”: ein afrikanisches Wort, das bedeutet „Slackware ist soooo schwer”

Offline Manfred

  • Administrator
  • *
  • Beiträge: 1.077
    • NASS e.K.
Re: Time zone problem
« Antwort #1 am: 07.08.2009, 17:37:37 »
Hi Kgha,

please open a root terminal and issue 'timeconfig' (without ') to adjust your timezone.

Post here again whether it did the trick.

Regards, Quax
Hole Deine Benutzer da ab, wo sie stehen,
nicht da, wo Du sie gerne stehen hättest...
---------------------------------------------------
Pick up the users where they really are
and not where you expect them to be...

Offline kgha

  • Vollprofi
  • *
  • Beiträge: 432
Re: Time zone problem
« Antwort #2 am: 07.08.2009, 18:11:46 »
Hi Quax,

it did help - in a way -  but still a bit of a mystery.

In the timeconfig menu I chose Europe/Stockholm. Then my system clock suddenly showed 21.41 instead of correct time 17.41. So I adjusted the clock. When checking the time in the Zimbra webmail I was only two hours wrong, not four. I then remembered that I hadn't adjusted the GMT + value so I set that to GMT +2.

Now the time gap was four hours...

I then set the clock to GMT -2 and now the time marks are right.

Well and good, but I can't understand why the clock should be set at GMT -2 when my time zone (central europe, summer time)  in fact is GMT +2?

"Ubuntu": an African word, meaning "Slackware is soooo difficult"
------------------------------------------------------------------------------------------
„Ubuntu”: ein afrikanisches Wort, das bedeutet „Slackware ist soooo schwer”

Offline Manfred

  • Administrator
  • *
  • Beiträge: 1.077
    • NASS e.K.
Re: Time zone problem
« Antwort #3 am: 07.08.2009, 18:42:38 »
1. How is the timezone on the Zimbra webserver set ?
2. Have you checked the timezone setting in your Zimbra client account ?
Quax
Hole Deine Benutzer da ab, wo sie stehen,
nicht da, wo Du sie gerne stehen hättest...
---------------------------------------------------
Pick up the users where they really are
and not where you expect them to be...

Offline kgha

  • Vollprofi
  • *
  • Beiträge: 432
Re: Time zone problem
« Antwort #4 am: 07.08.2009, 19:20:56 »
Zimbra: the webserver seems to be set correctly (works on my other pc running windows) and the user account settings are also correct.

After running the timeconfig I also get correct data when typing 'javascript:new Date()' in firefox' address field: GMT+0200 (not -0200 as previously).

It is as if the gmt settings in the configure-datetime application works backwards...

Well, the important thing is that all time markings seem to be correct now.
"Ubuntu": an African word, meaning "Slackware is soooo difficult"
------------------------------------------------------------------------------------------
„Ubuntu”: ein afrikanisches Wort, das bedeutet „Slackware ist soooo schwer”

Offline Manfred

  • Administrator
  • *
  • Beiträge: 1.077
    • NASS e.K.
Re: Time zone problem
« Antwort #5 am: 07.08.2009, 19:29:13 »
It is as if the gmt settings in the configure-datetime application works backwards...

Well, the important thing is that all time markings seem to be correct now.

I will examine configure-datetime.

Good to hear it is working now ;)

Regards, Quax
Hole Deine Benutzer da ab, wo sie stehen,
nicht da, wo Du sie gerne stehen hättest...
---------------------------------------------------
Pick up the users where they really are
and not where you expect them to be...

Offline kgha

  • Vollprofi
  • *
  • Beiträge: 432
Re: Time zone problem
« Antwort #6 am: 08.08.2009, 11:08:02 »
Solved - I ran the timeconfig command once again: Localtime and Europe/Stockholm (as tried earlier). Now the timezone setting given by hwclock is CEST instead of GMT+2, the setting given by javascript:new Date() is GMT+2, Zimbra marks shows up correct. Don't know why I didn't got this result before. But now the frustrating lack of logic and consistence is gone  ;D so no need to investigate the configure-datetime application
"Ubuntu": an African word, meaning "Slackware is soooo difficult"
------------------------------------------------------------------------------------------
„Ubuntu”: ein afrikanisches Wort, das bedeutet „Slackware ist soooo schwer”

Offline Manfred

  • Administrator
  • *
  • Beiträge: 1.077
    • NASS e.K.
Re: Time zone problem
« Antwort #7 am: 08.08.2009, 15:48:41 »
Hi Kgha,

...so no need to investigate the configure-datetime application

Thanks for the feedback!

Thus I can go ahead now with finishing the 1st lin2go version ;)

Regards and have a nice weekend,

Quax

p.s. Could you please edit your 1st posting and add a (solved) behind its title?
Hole Deine Benutzer da ab, wo sie stehen,
nicht da, wo Du sie gerne stehen hättest...
---------------------------------------------------
Pick up the users where they really are
and not where you expect them to be...