unread
Hi Will,
Am 03.09.2012 um 14:01 schrieb Will Fitch wfitch@meetme.com:
[...]
I actually feel a static function which tracks globally would best serve
this case:date_default_format_set('c')
This would prevent the need for setting it on a per instance basis -
similar to the way timezones can be set:date_default_timezone_set('America/Chicago')
Please let’s not add another global setting. DateTime objects are basically value objects. If you need to create specific flavors of them, use a Factory.
Otherwise we will end up with horrible incompatibilities between libraries depending on different formats.
cu,
Lars