]> git.lyx.org Git - lyx.git/blobdiff - src/support/lyxtime.cpp
Maintain plain layout for separating paragraphs when switching layouts (#11936)
[lyx.git] / src / support / lyxtime.cpp
index 5415ac4eeb034057234b363d3931d7d004ca40ba..c155ed428d531426c66e16eb21777ff72c327aa4 100644 (file)
@@ -27,16 +27,7 @@ namespace support {
 
 time_t current_time()
 {
-       return time(0);
-}
-
-
-string const formatted_time(time_t t, string const & fmt)
-{
-       struct tm * loc_tm = localtime(&t);
-       char date[50];
-       strftime(date, sizeof(date), fmt.c_str(), loc_tm);
-       return string(date);
+       return time(nullptr);
 }