Steps to reproduce
- Create a new share and set the expiration date to '2018-05-13'
- The expiration date is stored in database as '2018-05-13 00:00:00'
- Your server should be set at timezone 'Europe/Madrid' and php.ini configuration parameter
date.timezoneset at 'Europe/Madrid' (this timezone is UTC+2)
The share link should not be available at 2018-05-13 00:01:00
The share link does not expire until 2018-05-13 02:00:00
Operating system: Ubuntu 16.04
Web server: Apache 2.4
Database: Tested with PostgreSQL and MySQL/MariaDB
PHP version: 7.1
ownCloud version: 10.0.6 (stable)
Updated from an older ownCloud or fresh install: Fresh install
Where did you install ownCloud from: Downloaded tarball from owncloud.org
This is a problem inherited from OwnCloud stance of setting the timezone to UTC, whatever the server has been set to.
In Github I have added a new comment to a ticket that reported this same problem but was closed with a proposed solution that does not solve the problem.
The best solution to this problem would be creating a new setting to compare the expiration dates with the correct timezone.