1
0
mirror of https://github.com/MidnightCommander/mc synced 2025-04-01 12:42:57 +03:00

Ticket : (file_frmt_time): fix time format.

Change minutes and seconds delimiter: h:mm.ss -> h:mm:ss.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-01-28 21:22:28 +03:00
parent 9ad896f5e7
commit 3937f97d96

@ -21,7 +21,7 @@
Norbert Warmuth, 1997
Pavel Machek, 1998
Slava Zanko, 2009, 2010, 2011, 2012, 2013
Andrew Borodin <aborodin@vmail.ru>, 2009-2022
Andrew Borodin <aborodin@vmail.ru>, 2009-2023
This file is part of the Midnight Commander.
@ -341,7 +341,7 @@ file_frmt_time (char *buffer, double eta_secs)
eta_hours = (int) (eta_secs / (60 * 60));
eta_mins = (int) ((eta_secs - (eta_hours * 60 * 60)) / 60);
eta_s = (int) (eta_secs - (eta_hours * 60 * 60 + eta_mins * 60));
g_snprintf (buffer, BUF_TINY, _("%d:%02d.%02d"), eta_hours, eta_mins, eta_s);
g_snprintf (buffer, BUF_TINY, _("%d:%02d:%02d"), eta_hours, eta_mins, eta_s);
}
/* --------------------------------------------------------------------------------------------- */