【问题标题】:How to solve report date and time on report如何解决报告上的报告日期和时间
【发布时间】:2018-12-18 15:16:26
【问题描述】:

当我使用区域设置时,rdlc 报告中的当前日期和时间显示正确。但上传.rdlc 在服务器上的日期和时间显示不同。

本地报告中的当前日期和时间示例为:2014 年 6 月 10 日上午 5:01 示例服务器输出中的当前上传文件为:2014 年 6 月 8 日晚上 10:17

选项设置为:

如何解决这个问题。

【问题讨论】:

  • 不同的时区?区域性涮涮?
  • @ Infer-On :- 但是。如何?举个例子吧。
  • 可能您的机器有不同的时区或区域设置,请咨询您的 IT 管理员以检查生产服务器的区域设置/时区

标签: c# datetime rdlc


【解决方案1】:
=TimezoneInfo.ConvertTimeFromUtc(Globals!ExecutionTime.ToUniversalTime(),
            TimeZoneInfo.CreateCustomTimeZone("client", new TimeSpan(06, 00, 00),
            "client", "client"))

这里TimeSpan06表示(GMT+06:00),“client”是一个简单的字符串,只是用来指定名称

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-05
    • 2019-09-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多