Corrected weekday name in debug message of --modification-date. Thanks to Chris Lamb.
This commit is contained in:
parent
6178129593
commit
4ff855a11c
@ -463,6 +463,7 @@ int Decode_ecma119_format(struct tm *erg, char *text, int flag)
|
|||||||
/* 2010040711405800 */
|
/* 2010040711405800 */
|
||||||
{
|
{
|
||||||
int i, l, num, utc= 1;
|
int i, l, num, utc= 1;
|
||||||
|
struct tm norm_tm;
|
||||||
|
|
||||||
memset(erg, 0, sizeof(*erg));
|
memset(erg, 0, sizeof(*erg));
|
||||||
erg->tm_isdst= -1;
|
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';
|
erg->tm_sec= 10*(text[12]-'0')+text[13]-'0';
|
||||||
if(erg->tm_sec > 59)
|
if(erg->tm_sec > 59)
|
||||||
return(0);
|
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);
|
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