case 4670 v7 key culture fixes to determinant Invariant explicitly
This commit is contained in:
@@ -7,6 +7,7 @@ using Org.BouncyCastle.Crypto;
|
|||||||
using Org.BouncyCastle.OpenSsl;
|
using Org.BouncyCastle.OpenSsl;
|
||||||
using Sockeye.Models;
|
using Sockeye.Models;
|
||||||
using Sockeye.Util;
|
using Sockeye.Util;
|
||||||
|
using System.Globalization;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -311,12 +312,10 @@ namespace Sockeye.Biz
|
|||||||
//stamp a unique value in the key so it can be revoked later
|
//stamp a unique value in the key so it can be revoked later
|
||||||
//used to use the digest value of the key for this with xml key
|
//used to use the digest value of the key for this with xml key
|
||||||
//whole unix timestamp seconds but kept as a double to work beyond 2038
|
//whole unix timestamp seconds but kept as a double to work beyond 2038
|
||||||
|
//case 4670
|
||||||
w.WritePropertyName("Id");
|
w.WritePropertyName("Id");
|
||||||
var vv = Math.Truncate((DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds);
|
w.WriteValue(Math.Truncate((DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds).ToString(CultureInfo.InvariantCulture));
|
||||||
string sId = vv.ToString();
|
|
||||||
if (sId.Contains(","))
|
|
||||||
sId = sId.Split('.')[0];
|
|
||||||
w.WriteValue(sId);
|
|
||||||
|
|
||||||
w.WritePropertyName("Created");
|
w.WritePropertyName("Created");
|
||||||
w.WriteValue(System.DateTime.Now);
|
w.WriteValue(System.DateTime.Now);
|
||||||
@@ -348,7 +347,8 @@ namespace Sockeye.Biz
|
|||||||
w.WriteValue(l.MaintenanceExpire.AddYears(2));
|
w.WriteValue(l.MaintenanceExpire.AddYears(2));
|
||||||
|
|
||||||
w.WritePropertyName("TotalScheduleableUsers");
|
w.WritePropertyName("TotalScheduleableUsers");
|
||||||
w.WriteValue(l.Users.ToString());//Needs to be a string to match rockfish format
|
//cae 4670
|
||||||
|
w.WriteValue(l.Users.ToString(CultureInfo.InvariantCulture));//Needs to be a string to match rockfish format
|
||||||
|
|
||||||
w.WritePropertyName("Expires");
|
w.WritePropertyName("Expires");
|
||||||
w.WriteValue(l.MaintenanceExpire);
|
w.WriteValue(l.MaintenanceExpire);
|
||||||
|
|||||||
Reference in New Issue
Block a user