ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.74k stars 1.08k forks source link

The time of revision mode is different from the MS Office #1858

Closed kchzhang closed 2 years ago

kchzhang commented 2 years ago

Do you want to request a feature or report a bug?

Report a bug.

What is the current behavior?

The time of revision mode is different from the MS Office

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

  1. Create a document.
  2. Click the "track changes"
  3. Input content.
  4. Download and open.
  5. Time is different.

What is the expected behavior? The same time

Did this work in previous versions of DocumentServer? Not that I know of.

DocumentServer version: 7.1.1-23

Operating System:

Client: Ubuntu 22.04 / Ubuntu 20.04

Browser version:

Google Chrome 103.0.5060.134 time

ShockwaveNN commented 2 years ago

I think this may depends of timezone which setup on your server, which timezones you have on your browser\ms office side and on DocumentServer side?

kchzhang commented 2 years ago

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

I tried, but it didn't work

var dateStr = new Date(reviewInfo.DateTime).toISOString().slice(0, 19) + 'Z'

Maybe it's the 'toISOString'?

TatianaKirillova commented 2 years ago

Hello, @kchzhang Thank you for report. The ONLYOFFICE editor takes into account the client's time zone, while the MS Office editor records the current time without considering the time zone. In our editor, this is done so that when changing a document from different time zones, the chronology of changes is preserved.

kchzhang commented 2 years ago

thanks

ShockwaveNN commented 2 years ago

If there is no any question I'll close this issue, but feel free to comment if got any