setlocale() and local date
| From: | Nick Wilson | Date: | Thu, 27 Jun 2002 09:24:51 +0000 |
| Subject: | setlocale() and local date | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104123@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all
Having trouble with setlocale() and displaying a local date in my php.
setlocale(LC_ALL, "dk_DK");
$date=strftime("%A %B %G");
print($date);
The setlocale is returning FALSE so I'm getting just the english date, I
must be missing something but I've read the Manual and just can't see
what's wrong?
Many thanks....
- --
Nick Wilson // www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE9GtniHpvrrTa6L5oRAnryAKCtsYLCy1mfuXh6bp+UMnxK+4u+pgCggoOd
zd4XWCIP8kv3qgUtvkgIJrY=
=VpFf
-----END PGP SIGNATURE-----