瀏覽代碼

Fix the expiration time display problem in the dashboard due to time zone issues (#820)

master
xiangxiren 3 年之前
committed by GitHub
父節點
當前提交
0bc7a214bf
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      src/DotNetCore.CAP/Internal/Helper.cs

+ 2
- 1
src/DotNetCore.CAP/Internal/Helper.cs 查看文件

@@ -9,7 +9,8 @@ namespace DotNetCore.CAP.Internal
{
public static class Helper
{
private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local);
private static readonly DateTime Epoch = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Local)
.AddHours(TimeZoneInfo.Local.BaseUtcOffset.Hours);

public static long ToTimestamp(DateTime value)
{


Loading…
取消
儲存