Re: Re: I18Nv2 and internationalization

From: Date: Wed, 09 Nov 2005 11:13:01 +0000
Subject: Re: Re: I18Nv2 and internationalization
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21853@lists.php.net to get a copy of this message
Ok are you suggesting do a setlocale then insert the given date, and mysql will pickup the locale u selected ? What I am saying is, we are setting up a live webcam schedule, there will be people in different countries / places , so what we have to do in terms of adding it into the db, is from the given date input i suppose reformat it from a given country / country code from a country list. Can this package help me there add it in GMT ? I suppose once its in GMT I can use it to display the date in the local timezone ? On 09/11/2005, at 9:57 PM, Michael Wallner wrote:
Hi Dan Rossi, you wrote:
Im pretty sure there was a question there. I am needing to work out how to add a date into the database given by a country location/ country code using this package as I dont have anything in the country table joining country codes with language codes to be used for the locale I only have country codes. Then using this package in conjuction with say GeoIP if needed to obtain the clients location and display the date within their timezone ? Is this too confusing ?
I18Nv2_Locale is only meant for _displaying_ dates in the users locale. You should store all dates in a unified format, e.g. GMT or your local timezone. Regards, -- Michael - <mike(@)php.net> http://dev.iworks.at/ext-http/http-functions.html.gz -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.pear.general (#21853) next »