}
-time_t from_gmtime(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)
std::string const formatted_time(time_t t, std::string const & fmt);
/**
- * Inverse of ctime().
- * Since ctime() outputs the local time, the caller needs to ensure that the
- * time zone and daylight saving time are the same as when \p t was created
- * by ctime().
+ * Inverse of asctime(gmtime()).
*/
-time_t from_gmtime(std::string t);
+time_t from_asctime_utc(std::string t);
} // namespace support
} // namespace lyx
string localtime = p.getArg('{', '}');
preamble.registerAuthor(name);
Author const & author = preamble.getAuthor(name);
- // from_gmtime() will fail if LyX decides to output the
+ // from_asctime_utc() will fail if LyX decides to output the
// time in the text language.
- time_t ptime = from_gmtime(localtime);
+ time_t ptime = from_asctime_utc(localtime);
if (ptime == static_cast<time_t>(-1)) {
cerr << "Warning: Could not parse time `" << localtime
<< "ยด for change tracking, using current time instead.\n";