简体   繁体   English

为什么TimeStamp和KronosTimeZone列出不同的时区偏移量?

[英]Why do TimeStamp and KronosTimeZone list different time zone offsets?

I have a Kronos Workforce Central 8.1 server located in an EST time zone. 我在EST时区有Kronos Workforce Central 8.1服务器。 To confirm that the time zone was configured properly, I sent a GetServerTime request to the server. 为了确认时区配置正确,我向服务器发送了GetServerTime请求。

<Kronos_WFC version="1.0">
    <Request Object="ServerTime" Action="GetServerTime"/>
</Kronos_WFC>

To my surprise, the server response listed two different timezone offsets for GMT. 令我惊讶的是,服务器响应列出了GMT的两个不同时区偏移量。

  • TimeStamp="5/09/2018 10:23AM GMT-04:00 " TimeStamp =“ 5/09/2018 10:23 AM GMT-04:00
  • KronosTimeZone="( GMT -05:00 ) Eastern Time" KronosTimeZone =“( GMT -05:00 )东部时间”
<Kronos_WFC TimeStamp="5/09/2018 10:23AM GMT-04:00" version="1.0" WFCVersion="8.1.1.569">
    <Response Status="Success" Action="GetServerTime" Object="ServerTime">
        <ServerTime DateTime="5/09/2018 10:23AM" KronosTimeZone="(GMT -05:00) Eastern Time"/>
    </Response>
</Kronos_WFC>

Why is Workforce Central returning different GMT offsets for TimeStamp and KronosTimeZone ? 为什么Workforce Central为TimeStampKronosTimeZone返回不同的GMT偏移量?

The 1 hour difference in GMT offset is caused by Daylight Savings Time. GMT偏移量的1小时差异是由夏令时引起的。

The DST period in the United States begins each year on the 2nd Sunday in March, when clocks are set forward by 1 hour. 美国的夏令时开始于每年的3月2日,即每年的1时。 They are turned back again to standard time on the 1st Sunday in November as DST ends. 随着夏令时结束,它们会在11月的第一个星期日再次恢复为标准时间。

timeanddate.com - Daylight Savings Time in the USA timeanddate.com-美国的夏时制

In other words: 换一种说法:

  • KronosTimeZone is the server's time zone , which for EST will always be GMT -05:00 . KronosTimeZone是服务器的时区 ,对于EST而言始终为GMT -05:00
  • TimeStamp is the server's current time , which is GMT -04:00 due to daylight savings. TimeStamp是服务器的当前时间 ,由于夏令 ,该时间GMT -04:00

The TimeStamp offset will revert back to GMT -05:00 in November when DST ends. DST结束时,11月的时间戳偏移将恢复为GMT -05:00

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM