php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #63758 strftime for %x returns wrong format in Dutch
Submitted: 2012-12-13 10:24 UTC Modified: 2012-12-14 00:45 UTC
From: giso at connectholland dot nl Assigned:
Status: Not a bug Package: Date/time related
PHP Version: Irrelevant OS: Linux / Debian
Private report: No CVE-ID: None
 [2012-12-13 10:24 UTC] giso at connectholland dot nl
Description:
------------
The format outputted in Dutch for %x is "dd-mm-yy" while it should be "dd-mm-
yyyy"

I'm from the Netherlands and can assure you nobody writes or uses dates like "dd-
mm-yy"

Test script:
---------------
setlocale(LC_TIME, "nl_NL");
echo strftime("%x");

Expected result:
----------------
13-12-2012

Actual result:
--------------
13-12-12

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-12-14 00:45 UTC] aharvey@php.net
-Status: Open +Status: Not a bug -Package: I18N and L10N related +Package: Date/time related
 [2012-12-14 00:45 UTC] aharvey@php.net
strftime() uses the system's locale information — PHP itself doesn't handle the localisation in this case.

I'd suggest reporting a bug on the Debian bug tracker against the relevant package (locales, I think, but you might want to check).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 04:01:32 2024 UTC