@@ -16041,6 +16041,28 @@ check_db_settings ()
16041
16041
" || ' in SecInfo updates before the end of the file'"
16042
16042
" || ' being processed.',"
16043
16043
" '100' );");
16044
+
16045
+ if (sql_int ("SELECT count(*) FROM settings"
16046
+ " WHERE uuid = '" SETTING_UUID_USER_INTERFACE_TIME_FORMAT "'"
16047
+ " AND " ACL_IS_GLOBAL () ";")
16048
+ == 0)
16049
+ sql ("INSERT into settings (uuid, owner, name, comment, value)"
16050
+ " VALUES"
16051
+ " ('" SETTING_UUID_USER_INTERFACE_TIME_FORMAT "', NULL,"
16052
+ " 'User Interface Time Format',"
16053
+ " 'Preferred time format to be used in client user interfaces.',"
16054
+ " '24' );");
16055
+
16056
+ if (sql_int ("SELECT count(*) FROM settings"
16057
+ " WHERE uuid = '" SETTING_UUID_USER_INTERFACE_DATE_FORMAT "'"
16058
+ " AND " ACL_IS_GLOBAL () ";")
16059
+ == 0)
16060
+ sql ("INSERT into settings (uuid, owner, name, comment, value)"
16061
+ " VALUES"
16062
+ " ('" SETTING_UUID_USER_INTERFACE_DATE_FORMAT "', NULL,"
16063
+ " 'User Interface Date Format',"
16064
+ " 'Preferred date format to be used in client user interfaces.',"
16065
+ " 'wdmy' );");
16044
16066
}
16045
16067
16046
16068
/**
@@ -52453,7 +52475,9 @@ modify_setting (const gchar *uuid, const gchar *name,
52453
52475
|| strcmp (uuid, "578a1c14-e2dc-45ef-a591-89d31391d007") == 0
52454
52476
|| strcmp (uuid, "02e294fa-061b-11e6-ae64-28d24461215b") == 0
52455
52477
|| strcmp (uuid, "5a9046cc-0628-11e6-ba53-28d24461215b") == 0
52456
- || strcmp (uuid, "a09285b0-2d47-49b6-a4ef-946ee71f1d5c") == 0))
52478
+ || strcmp (uuid, "a09285b0-2d47-49b6-a4ef-946ee71f1d5c") == 0
52479
+ || strcmp (uuid, "11deb7ff-550b-4950-aacf-06faeb7c61b9") == 0
52480
+ || strcmp (uuid, "d9857b7c-1159-4193-9bc0-18fae5473a69") == 0))
52457
52481
{
52458
52482
gsize value_size;
52459
52483
gchar *value, *quoted_uuid, *quoted_value;
@@ -52591,6 +52615,28 @@ modify_setting (const gchar *uuid, const gchar *name,
52591
52615
}
52592
52616
}
52593
52617
52618
+ if (strcmp (uuid, "11deb7ff-550b-4950-aacf-06faeb7c61b9") == 0)
52619
+ {
52620
+ int value_int;
52621
+ /* User Interface Time Format */
52622
+ if (sscanf (value, "%d", &value_int) != 1
52623
+ || (strcmp (value, "12") && strcmp (value, "24")))
52624
+ {
52625
+ g_free (value);
52626
+ return 2;
52627
+ }
52628
+ }
52629
+
52630
+ if (strcmp (uuid, "d9857b7c-1159-4193-9bc0-18fae5473a69") == 0)
52631
+ {
52632
+ /* User Interface Date Format */
52633
+ if (strcmp (value, "wmdy") && strcmp (value, "wdmy"))
52634
+ {
52635
+ g_free (value);
52636
+ return 2;
52637
+ }
52638
+ }
52639
+
52594
52640
quoted_value = sql_quote (value);
52595
52641
g_free (value);
52596
52642
0 commit comments