summaryrefslogtreecommitdiff
path: root/ext/date
diff options
context:
space:
mode:
authorZoe Slattery <zoe@php.net>2008-10-28 19:26:03 +0000
committerZoe Slattery <zoe@php.net>2008-10-28 19:26:03 +0000
commitc7d76c2f02c3d33f2ecccd7020492f0adadeea75 (patch)
treee978836d17ca99788966de0940d88b88c6159f8b /ext/date
parent35829ec7ed3e04b31e03c3a02c0f7a3b322bb8d4 (diff)
downloadphp-git-c7d76c2f02c3d33f2ecccd7020492f0adadeea75.tar.gz
scottish time variation
Diffstat (limited to 'ext/date')
-rw-r--r--ext/date/tests/strtotime_variation_scottish.phpt16
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/date/tests/strtotime_variation_scottish.phpt b/ext/date/tests/strtotime_variation_scottish.phpt
new file mode 100644
index 0000000000..57ef734993
--- /dev/null
+++ b/ext/date/tests/strtotime_variation_scottish.phpt
@@ -0,0 +1,16 @@
+--TEST--
+Checking whisky time
+--INI--
+date.timezone="UTC"
+--FILE--
+<?php
+ var_dump(date('H:i:s', strtotime('back of 7')));
+ var_dump(date('H:i:s', strtotime('front of 7')));
+ var_dump(date('H:i:s', strtotime('back of 19')));
+ var_dump(date('H:i:s', strtotime('front of 19')));
+?>
+--EXPECTF--
+%string|unicode%(8) "07:15:00"
+%string|unicode%(8) "06:45:00"
+%string|unicode%(8) "19:15:00"
+%string|unicode%(8) "18:45:00"