]> granicus.if.org Git - php/commitdiff
- skip on win, strftime uses system TZ
authorPierre Joye <pajoye@php.net>
Mon, 12 Sep 2011 23:31:22 +0000 (23:31 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 12 Sep 2011 23:31:22 +0000 (23:31 +0000)
ext/date/tests/bug32555.phpt

index a99d3e289072f4aeeeffb45e882ab97b839d7492..fca34ffa1913f8071a2894b74cd49f2bc943d1be 100644 (file)
@@ -1,10 +1,13 @@
 --TEST--
 Bug #32555 (strtotime("tomorrow") can return false)
+--SKIPIF--
+<?php 
+if (substr(PHP_OS, 0, 3) == 'WIN') die('skip strftime uses system TZ'); 
+?>
 --INI--
 date.timezone=US/Eastern
 --FILE--
 <?php
-
 $stamp = 1112427000;
 print strftime('%c %Z',strtotime('now',$stamp)) ."\n";
 print strftime('%c %Z',strtotime('tomorrow',$stamp)) ."\n";