mirror of
				https://gitlab.com/ruany/litebans-php.git
				synced 2025-11-04 00:32:31 +00:00 
			
		
		
		
	Modify strftime test
This commit is contained in:
		
							parent
							
								
									ea25965003
								
							
						
					
					
						commit
						d9b7360f25
					
				@ -128,12 +128,12 @@ final class Settings {
 | 
			
		||||
            $fail = true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $test = strftime("%F %H:%M:%S", 0);
 | 
			
		||||
        if ($test !== "1970-01-01 00:00:00") {
 | 
			
		||||
        $test = strftime("%Y-%m-%d %H:%M", 0);
 | 
			
		||||
        if ($test !== "1970-01-01 00:00") {
 | 
			
		||||
            ob_start();
 | 
			
		||||
            var_dump($test);
 | 
			
		||||
            $testdump = ob_get_clean();
 | 
			
		||||
            echo("Assertion failed: strftime(\"%F %T\",0) != \"1970-01-01 00:00:00\"<br>");
 | 
			
		||||
            echo("Assertion failed: strftime(\"%Y-%m-%d %H:%M\",0) != \"1970-01-01 00:00:00\"<br>");
 | 
			
		||||
            echo("Actual result: " . $testdump);
 | 
			
		||||
            $fail = true;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user