Skip to content

Commit 0e5a8c1

Browse files
committed
Use zero-padded day of the month in DE+FR
Currently, dates get formatted as "1.01.2014" which is inconsistent. Other locales use "01.01.2014" or comparable as well.
1 parent 9364923 commit 0e5a8c1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/locale/de-DE.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ d3.locale.de_DE = d3.locale({
66
grouping: [3],
77
currency: ["", " €"],
88
dateTime: "%A, der %e. %B %Y, %X",
9-
date: "%e.%m.%Y",
9+
date: "%d.%m.%Y",
1010
time: "%H:%M:%S",
1111
periods: ["AM", "PM"], // unused
1212
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],

src/locale/fr-FR.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ d3.locale.fr_FR = d3.locale({
66
grouping: [3],
77
currency: ["", " €"],
88
dateTime: "%A, le %e %B %Y, %X",
9-
date: "%e/%m/%Y",
9+
date: "%d/%m/%Y",
1010
time: "%H:%M:%S",
1111
periods: ["AM", "PM"], // unused
1212
days: ["dimanche", "lundi", "mardi", "mercredi", "jeudi", "vendredi", "samedi"],

0 commit comments

Comments
 (0)