Skip to content

Commit 1f7bcfb

Browse files
author
hans
committed
Added fix for windows dates throwing an error
1 parent 9bebc7d commit 1f7bcfb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Connection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ public static function instance($connection_string_or_connection_name=null)
9292
{
9393
$config = Config::instance();
9494

95+
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
96+
self::$datetime_format = 'Y-m-d H:i:s';
97+
}
98+
9599
if (strpos($connection_string_or_connection_name, '://') === false)
96100
{
97101
$connection_string = $connection_string_or_connection_name ?

0 commit comments

Comments
 (0)