X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Flyxtime.cpp;h=3150825d753f80c3dd95ae15b6147b5c4a8d5114;hb=faa87bf9f30b943397429a04254d96963bbf38bc;hp=9bdde9cb3af6696b68125cecd14ae4070b4012e3;hpb=aafd52f44167d5510be1ddcb974daa9dae486933;p=lyx.git diff --git a/src/support/lyxtime.cpp b/src/support/lyxtime.cpp index 9bdde9cb3a..3150825d75 100644 --- a/src/support/lyxtime.cpp +++ b/src/support/lyxtime.cpp @@ -40,7 +40,7 @@ string const formatted_time(time_t t, string const & fmt) } -time_t from_ctime(string t) +time_t from_asctime_utc(string t) { // Example for the format: "Sun Nov 6 10:39:39 2011\n" // Generously remove trailing '\n' (and other whitespace if needed) @@ -57,6 +57,7 @@ time_t from_ctime(string t) << "´ (invalid format)"); return static_cast(-1); } + loc_dt.setTimeSpec(Qt::UTC); return loc_dt.toTime_t(); }