This commit is contained in:
6
util.cs
6
util.cs
@@ -10,12 +10,13 @@ namespace raven_integration
|
|||||||
{
|
{
|
||||||
public static class TimeZoneAdjustmentExtension
|
public static class TimeZoneAdjustmentExtension
|
||||||
{
|
{
|
||||||
|
//#######################################################################################################
|
||||||
public static DateTime ToOffsetAdjustedUniversalTime(this DateTime dtIn)
|
public static DateTime ToOffsetAdjustedUniversalTime(this DateTime dtIn)
|
||||||
{
|
{
|
||||||
//Date filtering tests MUST use a relative time zone adjusted to users's forced user options time zone
|
//Date filtering tests MUST use a relative time zone adjusted to users's forced user options time zone
|
||||||
//or the tests that cross dst / pst boundaries will fail
|
//or the tests that cross dst / pst boundaries will fail
|
||||||
//See servers spec doc core-locale-currency-numbers-time-and-dates.txt for details
|
//See servers spec doc core-locale-currency-numbers-time-and-dates.txt for details
|
||||||
double TIME_ZONE_ADJUSTMENT = -8;
|
double TIME_ZONE_ADJUSTMENT = -8;// <---=== SET THIS TO SAME AS GENERATED DATA OFFSET AT SERVER
|
||||||
Double TimeZoneAdjustment = (TIME_ZONE_ADJUSTMENT) * -1;
|
Double TimeZoneAdjustment = (TIME_ZONE_ADJUSTMENT) * -1;
|
||||||
return dtIn.AddHours(TimeZoneAdjustment).ToUniversalTime();
|
return dtIn.AddHours(TimeZoneAdjustment).ToUniversalTime();
|
||||||
|
|
||||||
@@ -27,9 +28,8 @@ namespace raven_integration
|
|||||||
//#######################################################################################################
|
//#######################################################################################################
|
||||||
public static string API_BASE_URL = "http://localhost:7575/api/v8/";
|
public static string API_BASE_URL = "http://localhost:7575/api/v8/";
|
||||||
// public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/";
|
// public static string API_BASE_URL = "https://test.helloayanova.com/api/v8.0/";
|
||||||
|
|
||||||
public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";
|
public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";
|
||||||
|
|
||||||
|
|
||||||
//#######################################################################################################
|
//#######################################################################################################
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user