OK I spent yesterday working trough some of the idiosyncrasies of
DateTime and having had a sleep I've finished off this morning.
First question.
Why are there two different formats for dates with date creation using
one format and everything else using strftime formatting?
( Slipping a date through DateTime and returning it DATE_W3C seems to be
adding the correct daylight saving details so far and allowing ADOdb
date to work )
Second question.
What is the current situation on translating dates? I've tried several
ways of using setlocale, but at present I've not been able to get
anything other than English out of the code.
Third question
In order to get things working I've ended up with
date_default_timezone_set() and haven't needed to use DateTimeZone at
all ( other than to get a list for the user to select from ). Internally
we are working UTC normalized, and then displaying with the user offset
if they select 'local'. IS the correct thing to be setting the default
for each user? I suspect yes since previous code has always had to fight
the server time setting changing things.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php