-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secureview Watermark Date is set to UTC and cannot change it #4364
Comments
Did you set the timezone in the PHP configuration? https://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone |
Yes i did Asia/Jakarta |
Strange I just checked and for me the timezone is properly taken into account for the watermark:
|
no clue, but i might start set the timezone directly in the wopicontroller for now |
'date' => (new \DateTime('now', new \DateTimeZone('Asia/Jakarta')))->format('Y-m-d H:i:s') I use this code |
Can you share the output of |
Default timezone => Asia/Jakarta |
All right, so seems server does change this https://github.com/nextcloud/server/blob/7c59119c03c491f3534021b7011adfebf6e27b19/lib/base.php#L618 I do not see a reason why this would be done, so checking if anyone remembers a reason for this, but pushed a fix in #4366 to pick up the |
Describe the bug
Watermark Date is Set To UTC even tho the timezone has been change
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The date should follow the server timezone
Screenshots
If applicable, add screenshots to help explain your problem.
Client details:
Server details
Operating system: Ubuntu 24
Web server: Apache
Database: MySQL
PHP version: 8.3
Nextcloud version: 30.02
Version of Collabora Online Collabora Online Development Edition 24.04.11.1 8d0ad9add2
The text was updated successfully, but these errors were encountered: