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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: giso at connectholland dot nl
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 05:01:42 2025 UTC