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:13:28 +0000
Subject: PHP 4.0 Bug #6946 Updated: date should use the current locale, instead of always returning dates in englis
Groups: php.dev 
Request: Send a blank email to php-dev+get-37514@lists.php.net to get a copy of this message
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

« previous php.dev (#37514) next »