[TYPO3-dev] TCA date without timezone concideration?
Ries van Twisk
typo3 at rvt.dds.nl
Fri Jun 2 17:48:30 CEST 2006
Søren Schaffstein wrote:
>Hi,
>
>Why don't you just add the GMT-timeadjustment variable instead of a
>fixed 12 hours? So it will work with all timezone settings....
>
>
You mean the last parameter in mktime? IF you mean that because it's
depreciated in php 5.1.
php talks about 'the new timezone handling features should be used
instead.', but I am not aware
if typo3 'knows' about that feature. So I wanted to play save. Also I am
not in any real time zone at all with
this function. I just need to know a event's date, like a birtday.
See it like this :
When I am born in Holland on 10th of march 23:00.
That doesn't mean I need to fill in the 11th of march 6:00 in Ecuador
because of timezone issues on some official form.
Ries
>Søren
>
>Ries van Twisk wrote:
>
>
>>Hey all,
>>
>>I insert a date like this while converting data form a other database
>>into a:
>> $lastVisitDate = mktime(0, 0, 0, $review['en']['DateMonthLastVisit'],
>>$review['en']['DateDayLastVisit'], $review['en']['DateYearLastVisit']);
>>
>>If the valued for de dates are set to:
>>day : 20
>>Month: 7
>>Year:2005
>>
>>Then in the backend this is changed to: 2005-7-19.
>>My computers TZ and my servers TZ is both set th GMT-5.
>>
>>Can I specify to typo3 into my TCA to handle some dates without timezone
>>concideration?
>>
>>I am in the above case not interesed when a event happend exacly (12 at
>>night), but when a event happend locally.
>>This means 20-7-2006 is for everybody around the globe the same date.
>>Also for BE editors and I can't have TZ conciderations.
>>
>>BTW: I can temporarly solve it like this:
>> $lastVisitDate = mktime(12, 0, 0,
>>$review['en']['DateMonthLastVisit'], $review['en']['DateDayLastVisit'],
>>$review['en']['DateYearLastVisit']);
>>By simply adding 12 hours to the date... But I don't fine that a
>>satisfying solution.
>>
>>Ries
>>
>>
>>
>>
>>
>>
>_______________________________________________
>TYPO3-dev mailing list
>TYPO3-dev at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>
>
--
Ries van Twisk
Freelance Typo3 Developer
=== Private:
email: ries at vantwisk.nl
web: http://www.rvantwisk.nl/freelance-typo3.html
skype: callto://r.vantwisk
=== Work:
email: ries at livetravelguides.com
web: http://www.livetravelguides.com
More information about the TYPO3-dev
mailing list