Corrected weekday name in debug message of --modification-date. Thanks to Chris Lamb.

This commit is contained in:
Thomas Schmitt 2016-08-04 07:33:14 +00:00
parent 6178129593
commit 4ff855a11c
2 changed files with 7 additions and 1 deletions

View File

@ -463,6 +463,7 @@ int Decode_ecma119_format(struct tm *erg, char *text, int flag)
/* 2010040711405800 */
{
int i, l, num, utc= 1;
struct tm norm_tm;
memset(erg, 0, sizeof(*erg));
erg->tm_isdst= -1;
@ -499,6 +500,11 @@ int Decode_ecma119_format(struct tm *erg, char *text, int flag)
erg->tm_sec= 10*(text[12]-'0')+text[13]-'0';
if(erg->tm_sec > 59)
return(0);
/* Let mktime(3) compute erg->tm_wday and erg->tm_yday */
memcpy(&norm_tm, erg, sizeof(struct tm));
mktime(&norm_tm);
erg->tm_wday= norm_tm.tm_wday;
erg->tm_yday= norm_tm.tm_yday;
return(1 + !utc);
}

View File

@ -1 +1 @@
#define Xorriso_timestamP "2016.07.31.073903"
#define Xorriso_timestamP "2016.08.04.073312"