fixed: zero at the beginning of dates/times, e.g. '05' (tests)
This commit is contained in:
		
							parent
							
								
									6524c565e3
								
							
						
					
					
						commit
						215156e0fe
					
				| 
						 | 
				
			
			@ -196,6 +196,17 @@ var crontests = []crontest{
 | 
			
		|||
		},
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	{ // Zero leading values
 | 
			
		||||
		"00 01 03 07 *",
 | 
			
		||||
		"Mon 2006-01-02 15:04",
 | 
			
		||||
		[]crontimes{
 | 
			
		||||
			{"2013-01-01 00:00:00", "Wed 2013-07-03 01:00"},
 | 
			
		||||
			{"2014-01-28 00:00:00", "Thu 2014-07-03 01:00"},
 | 
			
		||||
			{"2013-12-30 00:30:00", "Thu 2014-07-03 01:00"},
 | 
			
		||||
			{"2015-07-03 02:01:00", "Sun 2016-07-03 01:00"},
 | 
			
		||||
		},
 | 
			
		||||
	},
 | 
			
		||||
 | 
			
		||||
	// TODO: more tests
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue