Enabled with -alter_date times between begin of year 0 and end of year 9999
This commit is contained in:
@@ -1107,3 +1107,20 @@ ex:;
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
int Xorriso_check_rrip_tf_1900(struct XorrisO *xorriso, time_t t, int flag)
|
||||
{
|
||||
if(xorriso->relax_compliance & isoburn_igopt_rrip_tf_year0 ||
|
||||
t >= -2208988800)
|
||||
return(1);
|
||||
sprintf(xorriso->info_text, "Time value %s", ctime(&t));
|
||||
/* Overwrite ctime's newline */
|
||||
strcpy(xorriso->info_text + strlen(xorriso->info_text) - 1,
|
||||
" in local time is before 01 Jan 1900 00:00:00 UTC");
|
||||
strcpy(xorriso->info_text + strlen(xorriso->info_text),
|
||||
" and -compliance rrip_tf_year0 is not set");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "WARNING", 0);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user