Corrected weekday name in debug message of --modification-date. Thanks to Chris Lamb.
This commit is contained in:
parent
3cbffc23ff
commit
2cb8ae96f0
@ -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);
|
||||
}
|
||||
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2016.07.31.073903"
|
||||
#define Xorriso_timestamP "2016.08.04.073312"
|
||||
|
Loading…
Reference in New Issue
Block a user