[Linux] Update on open of time field seems to use UTC time

Hello all,

I’ve created a document in OnlyOffice and inserted in it the time with the option “Update automatically”, which creates a “TIME” field. If I close and re-open the document, the time is updated, as expected. But the updated time is wrong: it has an offset of 2 hours compared to the actual time.

Strangely, this seems to match the offset between the actual time and the time the internal clock uses: as many - if not all - Linux users, my internal clock is set to UTC time, and the offset is handled by the system. Could it be possible that when opening a document, OnlyOffice uses the time from the internal clock without applying the offset for the local time?

Thanks!

OS version: Linux openSuse Leap 15.6 - up to date
OnlyOffice version: v8.3.3.21
Downloaded from: Flatpak repositories

Looks like I can’t edit my post, and I forgot to add something: if I update the TIME field explicitely via F9 or the contextual menu, the time is correct. The problem only happens when the field is updated automatically when opening the document.

1 Like

@eb303 :handshake:

Thanks for your report —I was able to reproduce this behavior on Windows as well. :hugs:

We’ll be creating an internal bug report shortly to track this issue, and I’ll make sure to keep you updated on any progress. Thanks again for bringing this to our attention!

Thanks Nikolas, glad I could help!