AppReceipt 的 PurchaseDate 是 UTC 时间还是本地时间?
Is PurchaseDate of AppReceipt in UTC or local time?
在UWP Windows 10 个应用中,我们可以获取应用或附加组件的购买日期。 (Documenation here)
var receipt = await CurrentApp.GetAppReceiptAsync();
但是没有提到日期是 UTC 或本地用户时间!
谢谢
如果您查看收据,您会发现日期末尾有 'Z':
PurchaseDate="2015-12-14T19:37:05.692Z"
这意味着现在是 UTC 时间。一些参考资料:one, two.
在UWP Windows 10 个应用中,我们可以获取应用或附加组件的购买日期。 (Documenation here)
var receipt = await CurrentApp.GetAppReceiptAsync();
但是没有提到日期是 UTC 或本地用户时间! 谢谢
如果您查看收据,您会发现日期末尾有 'Z':
PurchaseDate="2015-12-14T19:37:05.692Z"
这意味着现在是 UTC 时间。一些参考资料:one, two.