This commit is contained in:
26
util.cs
26
util.cs
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user