On Wed, 14 Dec 2011, Oleg Oshmyan wrote: > > Using the information from /etc/localtime is *not* enough as > > you can't get the timezone identifier out of it. > > The time zone identifier would be System. No need to extract one from > /etc/localtime.
"System" is not a defined Timezone Identifier. So you can never match this against anything else PHP does. /etc/localtime does not provide all the information that PHP's date/time support needs. Hint: It doesn't use OS syscalls or library calls at all. > * There will be a new time zone called System. When this time zone is > active, instead of PHP's internal time zone database and > timezone-aware code, system-provided local time APIs are used. In > previous emails, I said things like 'system-provided local time > description and/or APIs' but they seem only to increase confusion, so > let me drop that part. This System time zone will obviously have some > system-dependent behaviour, share the system's idiosyncrasies etc. but > this is *the whole point*: if the programmer wants them, they should > be able to get them. That'd mean duplicating every function that deals with timezone. As I said: not going to happen. Derick -- http://derickrethans.nl | http://xdebug.org Like Xdebug? Consider a donation: http://xdebug.org/donate.php twitter: @derickr and @xdebug -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php