mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-04 06:49:49 +00:00 
			
		
		
		
	fix: treat the 0 time as invalid too
This commit is contained in:
		@@ -14,7 +14,7 @@ const defaultOptions: Options = {
 | 
			
		||||
 | 
			
		||||
function coerceDate(fp: string, d: any): Date {
 | 
			
		||||
  const dt = new Date(d)
 | 
			
		||||
  const invalidDate = isNaN(dt.getTime())
 | 
			
		||||
  const invalidDate = isNaN(dt.getTime()) || dt.getTime() === 0
 | 
			
		||||
  if (invalidDate && d !== undefined) {
 | 
			
		||||
    console.log(
 | 
			
		||||
      chalk.yellow(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user