nextcloud / tasks

:white_check_mark: Tasks app for Nextcloud
https://apps.nextcloud.com/apps/tasks
GNU Affero General Public License v3.0
561 stars 95 forks source link

Wrong Timezone in Tasks? #2586

Open vatolin opened 1 month ago

vatolin commented 1 month ago

Steps to reproduce

  1. Create a new task.
  2. Set starting date at e.g. 12:00
  3. Click at "due at".

At this click the time, given at step 2 jumps back by two hours. Obviously Tasks operate with UTC and does not recognize that the timezone of the server is CEST.

Is this a bug? Or is it a misconfiguration of the server? But I am sure that in Tasks before version 0.16.0 the given starting time did not jump back.

Expected behavior

I would expect, that the given staring time would being kept by.

Actual behaviour

The given starting time is being replaced by a time two hours back.

Tasks app version

0.16.0

CalDAV-clients used

Web Interface of NC

Browser

Firefox 126.0.0

Client operating system

macOS 12.7.5

Server operating system

Linux 5.10.0-29-amd64 x86_64

Web server

Apache

Database engine version

PostgreSQL

PHP engine version

PHP 8.2

Nextcloud version

29.0.1

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

I can provide this information later, probably.

Nextcloud configuration

I can provide this information later, probably.

Web server error log

I do not really know, how to finde the appropriate log file.

Log file

I do not really know, how to finde the appropriate log file.

Browser log

I do not really know, how to finde the appropriate log file.

Additional info

No response

philiprenich commented 1 month ago

I'm seeing this as well. Time is changed from my input time +1200 (say, 6:30pm) to UTC (6:30am)

It looks like 0.16 was supposed to have a fix for this, but maybe it's a different issue that causes this regression?

ma-ivanov commented 1 month ago

Confirm that this issue exists in my setup as well

x404080 commented 1 month ago

Same here, any tasks in my time zone revert back to UTC time.

sidgames5 commented 1 month ago

I can confirm this issue

jmarmstrong1207 commented 1 month ago

Can also confirm this, but changes to a different time offset from OP's. The correct time shows when I refresh the page.

JD145 commented 1 month ago

I have the same wrong behavior since the last Tasks release.

AlphaCraft9658 commented 1 month ago

I also experience similar things. When creating a task with a due-date and time, it displays in the wrong time zone, two hours before the actual intended time. But when I refresh the page, it's fixed. It's a minor bug, but still annoying. It looks like there have been similar things before, which are already fixed, but it's still here. Unless it has been fixed with Nextcloud 29 already, I can confirm this bug. (I couldn't update to NC 29 yet, as AIO hasn't pushed it yet.)

philiprenich commented 1 month ago

(I couldn't update to NC 29 yet, as AIO hasn't pushed it yet.)

See this discussion on updating to NC29 while on AIO, if you'd like to do it yourself before it lands in AIO.

AlphaCraft9658 commented 1 month ago

(I couldn't update to NC 29 yet, as AIO hasn't pushed it yet.)

See this discussion on updating to NC29 while on AIO, if you'd like to do it yourself before it lands in AIO.

I tried it before, but it caused issues. I am going to wait.

viper4gh commented 1 month ago

I have the same issue. It was definitely working some time ago. I normally use jtx Board app, where it still works. Because of that I cannot exactly say since when the problem exists. If I add a task via WebUI and set a due date I can then see in jtx that it is set in UTC instead of the local time zone. If I add a task via jtx and set a due date, I can additionally add the time zone, default is the local time zone. But in the WebUI there is no option for the time zone available. I further checked my user settings, where the region was set to English, what was wrong in my case. I changed that, but it didn't solve the problem either.