Re: PHP 4.0 Bug #6946 Updated: date should use the current locale, instead of always returning dates in englis

From: Date: Thu, 09 Nov 2000 10:28:06 +0000
Subject: Re: PHP 4.0 Bug #6946 Updated: date should use the current locale, instead of always returning dates in englis
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37515@lists.php.net to get a copy of this message
Hmm, maybe a feature report for an option to show the locale time/date? Greetz, Wico At 10:13 9-11-00 +0000, hholzgra@php.net wrote:
ID: 6946 Updated by: hholzgra Reported By: wico@cnh.nl Status: Closed Bug Type: Date/time related Assigned To: Comments: From the manual: " To format dates in other languages,
         you should use the setlocale() and strftime() functions. "
you have been warned :) Previous Comments: --------------------------------------------------------------------------- [2000-09-29 17:14:21] wico@cnh.nl Hiya date should use the current locale, instead of always returning dates in english setlocale(LC_TIME, "nl_NL"); $temp = date("d M Y H:i", time()); //this still gives the english date $temp = strftime("%d %b %Y %H:%M", time()); //this gives the correct, dutch date Greetz, Wico --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6946 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.dev (#37515) next »