summaryrefslogtreecommitdiff
path: root/src/dialogs/AdjustDateTimeDialog.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-10 19:32:13 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-10 19:32:13 +0200
commit842d23f234890cd22a191917f94506921a1ae2c6 (patch)
treef866aa33245897df42b08ff57601d0c9c5ae9d1d /src/dialogs/AdjustDateTimeDialog.vala
parentb6634e9301f0991bb04299b4412165f846d32543 (diff)
parent959dc1b29b9d4dd9d3fc56c7759afc77788ec256 (diff)
Update upstream source from tag 'upstream/0.30.8'
Update to upstream version '0.30.8' with Debian dir 0c60e638ddebac5a46b96286a9705d751e3e8dac
Diffstat (limited to 'src/dialogs/AdjustDateTimeDialog.vala')
-rw-r--r--src/dialogs/AdjustDateTimeDialog.vala8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dialogs/AdjustDateTimeDialog.vala b/src/dialogs/AdjustDateTimeDialog.vala
index cf2685b..9ca41d6 100644
--- a/src/dialogs/AdjustDateTimeDialog.vala
+++ b/src/dialogs/AdjustDateTimeDialog.vala
@@ -121,7 +121,13 @@ public class AdjustDateTimeDialog : Gtk.Dialog {
var picker = new Gtk.Box(Gtk.Orientation.HORIZONTAL, 5);
var combo = new Gtk.ComboBoxText();
for (int i = 0; i < 12; i++){
- combo.append_text(Time.gm((i * 2764800)).format("%B"));
+ var dt = new DateTime.from_unix_utc(i * 2764800);
+ var month_string = dt.format("%OB");
+ if (month_string.index_of("%OB") != -1) {
+ month_string = dt.format("%B");
+ }
+
+ combo.append_text(month_string);
}
picker.pack_start(combo, false, false, 0);
// Limits taken from GtkCalendar