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
1 changed files with 1 additions and 1 deletions
|
@ -846,7 +846,7 @@ movemail_strftime (char *s, size_t size, char const *format,
|
|||
static bool
|
||||
mbx_delimit_begin (FILE *mbf)
|
||||
{
|
||||
time_t now = time (NULL);
|
||||
time_t now = current_timespec ().tv_sec;
|
||||
struct tm *ltime = localtime (&now);
|
||||
if (!ltime)
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue