Forum Moderators: coopster

Message Too Old, No Replies

Time update on Selected timezone

time,timezone,autometic time,php script

         

mitulkoradia

7:22 am on Jun 20, 2006 (gmt 0)

10+ Year Member



Hi

i am trying to find any valid source for give me a autometic update on the time on selected timezone.

if any one help me to do that please. if any body have littel solution then also. please tell me.

if script, some hint, refrence site name ..

Thanks
Mitul

coopster

3:07 pm on Jun 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, mitulkoradia.

Computers often include NTP (Network Time Protocol) software with their operating systems. You are likely already running something and aren't aware of it. If not, one place you can read up on the subject is at NIST [tf.nist.gov].

mitulkoradia

4:24 am on Jun 21, 2006 (gmt 0)

10+ Year Member



Hi Coopster

actualy i am finding any source from where i can get atometic update for my wensite and i want this via php script.

i am also try time.windows.com and time.nist.gov

but it is not give me any result. i thinks i missed some parameter for that.

need help please

Thanks

coopster

1:30 pm on Jun 21, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Your site's time comes from the server, which in turn could/should be getting it's update from a nist server. Therefore you would not have to worry about scripting a time update.

mitulkoradia

4:42 am on Jun 22, 2006 (gmt 0)

10+ Year Member



Hi

actualy you dont understand my problem i will brief you.

I am developed one website which provide reminder service for that customer the customer are form any where in the world.

we are hosted this site in the Perth/Australiya.
now suppose one customer is from india and one is from UK .

now if he/she setup the reminder for his/her event ,but problem is that he has to set his event reminder time as per Perth/Australian time. not his local time.

i want solution for that. any body can set his reminder in his local time. so i nead the time conversation..

please dont forget many contry use Daylight saving time so i am not able to use in build time conversion functon of the php.

in sort i want some php script which takes data from somewhere and give acurate time for any timezone.

Thanks.

mitulkoradia

5:35 am on Jun 30, 2006 (gmt 0)

10+ Year Member



Hello any body please help i have urgency.

please ....

jatar_k

5:56 pm on Jun 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could store everything as GMT and then run a cron that would convert your local time to GMT and then select all reminders that need to be sent out based on the stored GMT time compared to the present GMT time.

you then would store the offset for each user, when you display their reminders you can then convert the GMT time to their local time using the offset. I wouldn't worry about daylight savings, your users can adjust it themselves by updating their profile. They will notice when everything is suddenly off by an hour.

mitulkoradia

4:29 am on Jul 1, 2006 (gmt 0)

10+ Year Member



Thanks for your suggestion
i will try this suggestion
i am trying to convence my client with that solution.

but then also if you have any other solution for the time converstion. like we can upadate any local time from there.

Many thanks...