Re: [CentOS] TimeZone Mystery on a virtual dedicated server

2008-12-30 Thread NiftyClusters T Mitchell
On Mon, Dec 29, 2008 at 7:34 AM, Ami Mahloof  wrote:
> Hi,
>
> I have a weird problem woth the time zone on my virtual (goDaddy) dedicated
> server
>
> I had to setup the timezone using system-config-date to GMT+7
>
> i am in NY (GMT-5)
>
> when i do GMT-5 i get all the times 2 hours ahead
>
> seems like there's something im missing here
>
> If i add an event to my web app let's say 7:30 - 8:15 , the only way for me
> to show it right is GMT+7
>
> can anyone help me figure out what am i missing here???
Start with "date -u".
Since this is a 'virtual' server the hardware real time clock is virtualized and
not under your control.

You should ask how the host keeps time.   Linux has two notions of
the real time clock.   It is correct local time OR it is GMT.   In the virtual
host world there is a third case where your local time is not local time
for the hardware.

It may be that you need to use ntpdate at start time and ntp normally.

It may also help to have system time set to hardware local time
and add an environment variable (TZ) for users.   This works as long
as "date -u" returns correct UTS time (GMT).




-- 
NiftyCluster
T o m   M i t c h e l l
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] TimeZone Mystery on a virtual dedicated server

2008-12-29 Thread Lanny Marcus
On Mon, Dec 29, 2008 at 10:34 AM, Ami Mahloof  wrote:
> I have a weird problem woth the time zone on my virtual (goDaddy) dedicated
> server
>
> I had to setup the timezone using system-config-date to GMT+7
>
> i am in NY (GMT-5)
>
> when i do GMT-5 i get all the times 2 hours ahead
>
> seems like there's something im missing here
>
> If i add an event to my web app let's say 7:30 - 8:15 , the only way for me
> to show it right is GMT+7
>
> can anyone help me figure out what am i missing here???

Not sure what is causing the problem on your VDS, but wondering
whether or not you have contacted Tech Support at GoDaddy, to see if
they have a solution.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] TimeZone Mystery on a virtual dedicated server

2008-12-29 Thread Robert
Justin Piszcz wrote:
> On Mon, 29 Dec 2008, Ami Mahloof wrote:
>
>   
>> Hi,
>>
>> I have a weird problem woth the time zone on my virtual (goDaddy) dedicated
>> server
>>
>> I had to setup the timezone using system-config-date to GMT+7
>>
>> i am in NY (GMT-5)
>>
>> when i do GMT-5 i get all the times 2 hours ahead
>>
>> seems like there's something im missing here
>>
>> If i add an event to my web app let's say 7:30 - 8:15 , the only way for me
>> to show it right is GMT+7
>>
>> can anyone help me figure out what am i missing here???
>>
>> Thanks
>> Ami
>>
>> 
>
> Odd,
>
> What does the following show?
> zdump /etc/localtime
>
> And when you change it to GMT-5?
>
> Also, why not use EST for the system time?
>
> Justin.
>   
More oddity.   Out of perfect clarity, total confusion:

# date ; for i in EST CST MST PST ; do zdump $i ; done; date
Mon Dec 29 11:55:09 CST 2008
EST  Mon Dec 29 12:55:09 2008 EST
CST  Mon Dec 29 17:55:09 2008 CST
MST  Mon Dec 29 10:55:09 2008 MST
PST  Mon Dec 29 17:55:09 2008 PST
Mon Dec 29 11:55:09 CST 2008


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] TimeZone Mystery on a virtual dedicated server

2008-12-29 Thread Justin Piszcz


On Mon, 29 Dec 2008, Ami Mahloof wrote:

> Hi,
>
> I have a weird problem woth the time zone on my virtual (goDaddy) dedicated
> server
>
> I had to setup the timezone using system-config-date to GMT+7
>
> i am in NY (GMT-5)
>
> when i do GMT-5 i get all the times 2 hours ahead
>
> seems like there's something im missing here
>
> If i add an event to my web app let's say 7:30 - 8:15 , the only way for me
> to show it right is GMT+7
>
> can anyone help me figure out what am i missing here???
>
> Thanks
> Ami
>

Odd,

What does the following show?
zdump /etc/localtime

And when you change it to GMT-5?

Also, why not use EST for the system time?

Justin.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] TimeZone Mystery on a virtual dedicated server

2008-12-29 Thread Ami Mahloof
Hi,

I have a weird problem woth the time zone on my virtual (goDaddy) dedicated
server

I had to setup the timezone using system-config-date to GMT+7

i am in NY (GMT-5)

when i do GMT-5 i get all the times 2 hours ahead

seems like there's something im missing here

If i add an event to my web app let's say 7:30 - 8:15 , the only way for me
to show it right is GMT+7

can anyone help me figure out what am i missing here???

Thanks
Ami
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos