]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxtime.cpp
* layouttranslations.review - remove dupes
[lyx.git] / src / support / lyxtime.cpp
index 9bdde9cb3af6696b68125cecd14ae4070b4012e3..3150825d753f80c3dd95ae15b6147b5c4a8d5114 100644 (file)
@@ -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<time_t>(-1);
        }
+       loc_dt.setTimeSpec(Qt::UTC);
        return loc_dt.toTime_t();
 }