This commit is contained in:
2020-02-03 18:39:14 +00:00
parent eec32c9527
commit c18cb5736a
2 changed files with 39 additions and 19 deletions

26
util.cs
View File

@@ -11,11 +11,11 @@ namespace raven_integration
public static class Util
{
//#######################################################################################################
//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 = "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\";
public const decimal TIME_ZONE_ADJUSTMENT = -8;
// public const decimal TIME_ZONE_ADJUSTMENT = -8;
//#######################################################################################################
@@ -43,17 +43,17 @@ namespace raven_integration
//DateTime stuff
public static DateTime RelativeToday()
{
Double TimeZoneAdjustment = ((double)TIME_ZONE_ADJUSTMENT) * -1;
return DateTime.Today.AddHours(TimeZoneAdjustment);
}
// public static DateTime RelativeToday()
// {
// Double TimeZoneAdjustment = ((double)TIME_ZONE_ADJUSTMENT) * -1;
// return DateTime.Today.AddHours(TimeZoneAdjustment);
// }
public static DateTime RelativeNow()
{
Double TimeZoneAdjustment = ((double)TIME_ZONE_ADJUSTMENT) * -1;
return DateTime.Now.AddHours(TimeZoneAdjustment);
}
// public static DateTime RelativeNow()
// {
// Double TimeZoneAdjustment = ((double)TIME_ZONE_ADJUSTMENT) * -1;
// return DateTime.Now.AddHours(TimeZoneAdjustment);
// }
public static string Uniquify(string s)
{