think tank forum

ttf development » php 4 or 5? timezones..!

lucas's avatar
17 years ago
link
lucas
i ❤ demo
i really want to use the new timezone functions, but they require php >=5.1.0. so should i make 5.1.0 mandatory, or should we stick with php 4?

http://us2.php.net/manual/en/function.timezon … s-list.php

using php >=5.1.0 will make daylight savings time automatic and beautiful. you store all timestamps in UTC, then when you use date() to format them, the timestamps within DST get +1, and the others don't. this is the way things should be, instead of running UTC-7 for MST and UTC-6 for MDT.

i guess i could disable per user timezones and print UTC if the server isn't running php >=5.1.0.

thoughts?
asemisldkfj's avatar
17 years ago
link
asemisldkfj
the law is no protection
isn't PHP 5 pretty common now? I don't know much about common hosting options though, so I'm not sure how common only offering PHP 4 is. just gotta weigh that against the importance of the new features, obv.
nny's avatar
17 years ago
link
nny
M̮͈̣̙̰̝̃̿̎̍ͬa͉̭̥͓ț̘ͯ̈́t̬̻͖̰̞͎ͤ̇ ̈̚J̹͎̿̾ȏ̞̫͈y̭̺ͭc̦̹̟̦̭̫͊̿ͩeͥ̌̾̓ͨ
this is a really simplistic forum. it seems kind of a waste to make it php4 incompatible over one feature...

however php is dropping support of php4 dec 31st.
lucas's avatar
17 years ago
link
lucas
i ❤ demo
there are two things that are the bane of my existence as a php programmer:
1. timezones
2. unicode