UTC date and time

Forum Home Forums Understanding the Software UTC date and time

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16853
    oley
    Participant

    Hi,

    I’ve created calculated channel as mentioned in the topic https://forum.rapidscada.org/?topic=how-to-show-current-date-and-time-on-scheme-or-dashboard

    If I use the DateTime.UtcNow.ToOADate() formula I become local time in the view.
    If I use the DateTime.Now.ToOADate() formula I become local time + 2 in the view.

    The time seems to be converted from UTC to local time, so in order to become UTC in the view, I would have to convert it additionally.

    Best regards

    #16854
    manjey73
    Participant

    The Web Server converts the time to the time specified in its settings, if not specified, then to the local time.

    The Scada Server stores the time in UTC.

    This is a headache for me when developing drivers, because the time of the device may also be added, which is set in the 3rd time zone, different from the UTC server and different from the Web server 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.