This commit is contained in:
2020-02-03 19:08:50 +00:00
parent 694e2e1284
commit 6f9167a942

View File

@@ -10,12 +10,13 @@ namespace raven_integration
{
public static class TimeZoneAdjustmentExtension
{
//#######################################################################################################
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
//or the tests that cross dst / pst boundaries will fail
//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;
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 = "https://test.helloayanova.com/api/v8.0/";
public static string TEST_DATA_FOLDER = @"..\..\..\testdata\";
//#######################################################################################################