~cyphermox/indicator-datetime/manual-upload

« back to all changes in this revision

Viewing changes to src/datetime-prefs.c

  • Committer: Tarmac
  • Author(s): Michael Terry
  • Date: 2013-03-06 16:05:56 UTC
  • mfrom: (209.1.1 canada)
  • Revision ID: tarmac-20130306160556-ylt0z2nr7xft76v5
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
498
498
    }
499
499
  }
500
500
  else {
501
 
    format = "%x";
 
501
    // This is intentionally not "%x".  See https://launchpad.net/bugs/1149696
 
502
    // If you are willing to do the hard work of writing a locale-sensitive
 
503
    // date parser, there is an open bug: https://launchpad.net/bugs/729056
 
504
    format = "%Y-%m-%d";
502
505
  }
503
506
 
504
507
  GDateTime * datetime = g_date_time_new_from_unix_local (gtk_spin_button_get_value (GTK_SPIN_BUTTON (spinner)));