mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Avoid backwards clock in movemail timestamps
* lib-src/movemail.c (mbx_delimit_begin): Use ‘current_timespec’ instead of ‘time’ to generate the user-visible timestamp. This works around the minor glitch caused by glibc bug 30200 <https://sourceware.org/bugzilla/show_bug.cgi?id=30200>.
This commit is contained in:
parent
4a5ff4d9c6
commit
2e8cc206f5
@ -846,7 +846,7 @@ movemail_strftime (char *s, size_t size, char const *format,
|
|||||||
static bool
|
static bool
|
||||||
mbx_delimit_begin (FILE *mbf)
|
mbx_delimit_begin (FILE *mbf)
|
||||||
{
|
{
|
||||||
time_t now = time (NULL);
|
time_t now = current_timespec ().tv_sec;
|
||||||
struct tm *ltime = localtime (&now);
|
struct tm *ltime = localtime (&now);
|
||||||
if (!ltime)
|
if (!ltime)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user