|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-09-29 17:14 UTC] wico at cnh dot 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 18:00:01 2025 UTC |
From the manual: " To format dates in other languages, you should use the setlocale() and strftime() functions. " you have been warned :)