Index: sources/view/settings/VDateTime.cpp =================================================================== diff -u -r3738eb975493a36efae6b1a060624abab72c6871 -r86df7ff03ea32f9cd8a18bbbc7b2e01de64c783f --- sources/view/settings/VDateTime.cpp (.../VDateTime.cpp) (revision 3738eb975493a36efae6b1a060624abab72c6871) +++ sources/view/settings/VDateTime.cpp (.../VDateTime.cpp) (revision 86df7ff03ea32f9cd8a18bbbc7b2e01de64c783f) @@ -70,6 +70,9 @@ month (_currentTime.toString("MM" )); year (_currentTime.toString("yyyy" )); + timeFormat (_Settings.timeFormat()); + dateFormat (_Settings.dateFormat()); + timezone(QTimeZone::systemTimeZone().abbreviation(_currentTime)); status(""); @@ -99,7 +102,7 @@ _day .toInt()) , QTime(_hour .toInt() , _minute .toInt())); - const QString dateTimeLocalStr = currentDateTimeLocal.toString("yyyy-MM-dd HH:mm:ss"); // sudo date -s requires this format + const QString dateTimeLocalStr = currentDateTimeLocal.toString(_updateFormat); // sudo date -s requires this format // Get the current UTC datetime const QDateTime currentDateTimeUTC = currentDateTimeLocal.toUTC(); @@ -192,7 +195,6 @@ mScript += Storage::Date_Time_Set_Sh; QStringList arguments; arguments << vDateTime << (vNTP ? "true" : "false"); - _process.start(mScript, arguments); }