Thanks all, I'll work on ur suggestions > From: talk-requ...@lists.nyphp.org > Subject: talk Digest, Vol 58, Issue 2 > To: talk@lists.nyphp.org > Date: Wed, 3 Aug 2011 12:00:01 -0400 > > Send talk mailing list submissions to > talk@lists.nyphp.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.nyphp.org/mailman/listinfo/talk > or, via email, send a message with subject or body 'help' to > talk-requ...@lists.nyphp.org > > You can reach the person managing the list at > talk-ow...@lists.nyphp.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of talk digest..." > > > Today's Topics: > > 1. Timezone handling php : Mangesh Sathe (mangesh sathe) > 2. Re: Timezone handling php : Mangesh Sathe (David Krings) > 3. Re: Timezone handling php : Mangesh Sathe (federico ulfo) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 2 Aug 2011 16:13:46 +0000 > From: mangesh sathe <mangeshsa...@hotmail.com> > To: <talk@lists.nyphp.org> > Subject: [nyphp-talk] Timezone handling php : Mangesh Sathe > Message-ID: <bay163-w4027335c4b4b2f464ef91cdf...@phx.gbl> > Content-Type: text/plain; charset="iso-8859-1" > > > Hello everyone , > > Need some help from you. > > Suppose someone is Writing an article like newspaper article. If user who > is in London wrote one article & set publish date & time according to UK > timezone , > Now another user who is in Tokyo wrote one article & set publish date & time > according to Japan timezone, > > so how can i publish/make available their articles with respect to their > timezone? > > Please give me some guidance on php timezone handling.. > > Thanks in advance. > Mangesh Sathe > > > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.nyphp.org/pipermail/talk/attachments/20110802/35a07120/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Tue, 02 Aug 2011 13:18:22 -0400 > From: David Krings <ram...@gmx.net> > To: NYPHP Talk <talk@lists.nyphp.org> > Subject: Re: [nyphp-talk] Timezone handling php : Mangesh Sathe > Message-ID: <4e38315e.80...@gmx.net> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > Hi! > > Years ago I was looking into the a similar issue and one way is to run a > Javascript on the client side that returns the GMT bias of the > client...assuming they set it correctly. The script reads it from a cookie > that gets written. > It is from a (still unfinished) project and this part is years old, so my > memory as to how exactly it works is fading. The JavaScript part is also not > my invention, I received that from someone on this list. > > The attached file contains a function that creates a heading for a page. The > time displayed in the heading is the time of the client, but based off the > server time. So the client's time is irrelevant as long as the GMT bias is > correctly set and, of course, the server has the correct time and local bias. > > I hope you can follow the handful of lines of code and hopefully it helps > with > what you try to accomplish. > > David > > > On 8/2/2011 12:13 PM, mangesh sathe wrote: > > Hello everyone , > > > > Need some help from you. > > > > Suppose someone is Writing an article like newspaper article. If user who is > > in London wrote one article & set publish date & time according to UK > > timezone , > > Now another user who is in Tokyo wrote one article & set publish date & time > > according to Japan timezone, > > > > so how can i publish/make available their articles with respect to their > > timezone? > > > > Please give me some guidance on php timezone handling.. > > > > Thanks in advance. > > Mangesh Sathe > > > > > > > > > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.nyphp.org/pipermail/talk/attachments/20110802/a90a344d/attachment-0001.html> > > ------------------------------ > > Message: 3 > Date: Tue, 2 Aug 2011 13:02:52 -0400 > From: federico ulfo <rainelemen...@gmail.com> > To: NYPHP Talk <talk@lists.nyphp.org> > Subject: Re: [nyphp-talk] Timezone handling php : Mangesh Sathe > Message-ID: <8470427030365452924@unknownmsgid> > Content-Type: text/plain; charset=ISO-8859-1 > > Use one timezone, the server one or where is located the website! When > you show the time and the article time you can get the user timezone, > and show the article with their timezone > > Sent from my iPhone > > On Aug 2, 2011, at 12:13 PM, mangesh sathe <mangeshsa...@hotmail.com> wrote: > > > Hello everyone , > > > > Need some help from you. > > > > Suppose someone is Writing an article like newspaper article. If user who > > is in London wrote one article & set publish date & time according to UK > > timezone , > > Now another user who is in Tokyo wrote one article & set publish date & > > time according to Japan timezone, > > > > so how can i publish/make available their articles with respect to their > > timezone? > > > > Please give me some guidance on php timezone handling.. > > > > Thanks in advance. > > Mangesh Sathe > > > > > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk@lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 58, Issue 2 > ***********************************
_______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org/Show-Participation