www.centos.org Forum Index CentOS 5 - General Support What is the best way to setup Time?
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread |
|---|
|
What is the best way to setup Time? | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2007/8/23
From
Posts: 20
|
Hello,
I'm very confused with the date/zone thing. I'm located in Greece so our time zone is GMT+2. question 1: through cento's setup should I setup the timezone to GMT+2? or Europe/Athens ??? what is the difference? question 2: I've setup both system and hardware time to GMT+2: [root@server httpdocs]# date Fri Nov 6 14:25:31 GMT+2 2009 [root@server httpdocs]# hwclock Fri 06 Nov 2009 02:25:49 PM GMT+2 -0.000358 seconds but when I use a php (echo date("l, F d, Y h:i" ,time());) file to show the date and time I get : Friday, November 06, 2009 05:25 it adds +3 hours...i dont know why. question 3: In /etc/sysconfig/clock I have: ZONE="Etc/GMT+2" UTC=false should I turn UTC on ? |
||
Posted on: 2009/11/6 12:36
|
|||
|
Re: What is the best way to setup Time? | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater Virginia, North America
Posts: 3404
|
Don't know about Greece, but in the US we have daylight savings time that adjusts the time +/- an hour in the Spring and Fall, but some states do things differently than others across our 4 major time zones in the continental US, never mind Alaska, Hawaii and "possessions" such as Puerto Rico. The "political" settings, as opposed to GMT+delta, take the local peculiarities into account and adjust the clock appropriately. You may have something similar. As far as the UTC setting, this is generally used on *nix systems like Linux to keep the hardware clock on GMT/UTC and display the system time as the local time in applications.
If you are dual-boot with Windows, or worse yet multi-boot, this gets more complex. |
||
|
_________________
Phil Required reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/11/6 21:04
|
|||
|
Re: What is the best way to setup Time? | #4 |
|
|---|---|---|---|
|
Professional Board Member
![]()
Joined: 2007/9/7
From Finland
Posts: 314
|
Quote:
Yes. Quote:
Only if you want to ignore DST changes and lock your time to UTC+2 always. If you want correct local time even when DST is in effect, choose the Europe/Athens timezone. |
||
Posted on: 2009/11/7 13:42
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
ZaNaToS





You cannot start a new topic.
You can view topic.