Merge pull request #539 from v-kaywon/changeUTC
change timezone to Canada/Pacific in tests
This commit is contained in:
commit
afffb73783
|
@ -8,6 +8,7 @@ Bind params using sqlsrv_prepare without any sql_type specified
|
|||
include 'MsCommon.inc';
|
||||
include 'AEData.inc';
|
||||
|
||||
date_default_timezone_set("Canada/Pacific");
|
||||
$dataTypes = array( "date", "datetime", "datetime2", "smalldatetime", "time", "datetimeoffset" );
|
||||
$conn = ae_connect();
|
||||
|
||||
|
@ -55,44 +56,44 @@ Testing date:
|
|||
c_det:
|
||||
date: 0001-01-01 00:00:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
c_rand:
|
||||
date: 9999-12-31 00:00:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
|
||||
Testing datetime:
|
||||
****Encrypted default type is compatible with encrypted datetime****
|
||||
c_det:
|
||||
date: 1753-01-01 00:00:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
c_rand:
|
||||
date: 9999-12-31 23:59:59.997000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
|
||||
Testing datetime2:
|
||||
****Encrypted default type is compatible with encrypted datetime2****
|
||||
c_det:
|
||||
date: 0001-01-01 00:00:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
c_rand:
|
||||
date: 9999-12-31 23:59:59.1000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
|
||||
Testing smalldatetime:
|
||||
****Encrypted default type is compatible with encrypted smalldatetime****
|
||||
c_det:
|
||||
date: 1900-01-01 00:00:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
c_rand:
|
||||
date: 2079-06-05 23:59:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
|
||||
Testing time:
|
||||
****Encrypted default type is compatible with encrypted time****
|
||||
|
|
|
@ -7,6 +7,7 @@ Retrieving SQL query contains encrypted filter
|
|||
<?php
|
||||
include 'MsCommon.inc';
|
||||
|
||||
date_default_timezone_set("Canada/Pacific");
|
||||
$conn = ae_connect();
|
||||
|
||||
// Create the table
|
||||
|
@ -75,7 +76,7 @@ LastName: Abel
|
|||
BirthDate:
|
||||
date: 1996-10-19 00:00:00.000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
|
||||
Checking ciphertext data:
|
||||
Done
|
|
@ -6,6 +6,7 @@ Test for inserting encrypted fixed size types data and retrieve both encrypted a
|
|||
<?php
|
||||
include 'MsCommon.inc';
|
||||
|
||||
date_default_timezone_set("Canada/Pacific");
|
||||
$conn = ae_connect();
|
||||
$testPass = true;
|
||||
|
||||
|
@ -71,9 +72,9 @@ BitData: 1
|
|||
DateTimeData:
|
||||
date: 9999-12-31 23:59:59.997000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
DateTime2Data:
|
||||
date: 9999-12-31 23:59:59.1000000
|
||||
timezone_type: 3
|
||||
timezone: UTC
|
||||
timezone: Canada/Pacific
|
||||
Done
|
|
@ -8,6 +8,7 @@ Bind params using sqlsrv_prepare with all sql_type
|
|||
include 'MsCommon.inc';
|
||||
include 'AEData.inc';
|
||||
|
||||
date_default_timezone_set("Canada/Pacific");
|
||||
$dataTypes = array( "date", "datetime", "datetime2", "smalldatetime", "time", "datetimeoffset" );
|
||||
$compatList = array( "date" => array( "SQLSRV_SQLTYPE_DATE", "SQLSRV_SQLTYPE_DATETIME", "SQLSRV_SQLTYPE_DATETIME2", "SQLSRV_SQLTYPE_DATETIMEOFFSET", "SQLSRV_SQLTYPE_NVARCHAR", "SQLSRV_SQLTYPE_SMALLDATETIME", "SQLSRV_SQLTYPE_VARCHAR"),
|
||||
"datetime" => array( "SQLSRV_SQLTYPE_DATETIME", "SQLSRV_SQLTYPE_DATETIME2", "SQLSRV_SQLTYPE_NVARCHAR", "SQLSRV_SQLTYPE_TIME", "SQLSRV_SQLTYPE_VARCHAR"),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
--TEST--
|
||||
Connect using a custom keystore provider with some required inputs missing
|
||||
--SKIPIF--
|
||||
<?php require('skipif_versions_old.inc'); ?>
|
||||
<?php require('skipif_not_ksp.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
|
Loading…
Reference in a new issue