aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Terry <michael.terry@canonical.com>2013-03-06 16:05:56 +0000
committerTarmac <Unknown>2013-03-06 16:05:56 +0000
commit2a8eb08f04a0bbee41be00910e360d023bc31065 (patch)
tree61d9b306a2ad2acdf045957c5e57bb00a5534492
parent0347c765edecb748643e5c51d38aaba51e6da266 (diff)
parent52677180cff243510db621739653fd6589e5820f (diff)
downloadayatana-indicator-datetime-2a8eb08f04a0bbee41be00910e360d023bc31065.tar.gz
ayatana-indicator-datetime-2a8eb08f04a0bbee41be00910e360d023bc31065.tar.bz2
ayatana-indicator-datetime-2a8eb08f04a0bbee41be00910e360d023bc31065.zip
Go back to ISO 8601 dates for the date-picker widget. This way we know how to parse it again when the user manually edits the string. Fixes: https://bugs.launchpad.net/bugs/1149696.
Approved by PS Jenkins bot, Mathieu Trudel-Lapierre.
-rw-r--r--src/datetime-prefs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/datetime-prefs.c b/src/datetime-prefs.c
index 952dce1..c02b8e2 100644
--- a/src/datetime-prefs.c
+++ b/src/datetime-prefs.c
@@ -498,7 +498,10 @@ format_time_text (GtkWidget * spinner, gpointer user_data)
}
}
else {
- format = "%x";
+ // This is intentionally not "%x". See https://launchpad.net/bugs/1149696
+ // If you are willing to do the hard work of writing a locale-sensitive
+ // date parser, there is an open bug: https://launchpad.net/bugs/729056
+ format = "%Y-%m-%d";
}
GDateTime * datetime = g_date_time_new_from_unix_local (gtk_spin_button_get_value (GTK_SPIN_BUTTON (spinner)));