Skip to content

Commit 03b954f

Browse files
committed
patch existing shares on access, if timezone is UTC
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent 79dfa2c commit 03b954f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/Service/ShareService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ public function getEffectiveShare(?string $token = null): Share {
163163
if ($effectiveShare->getType() === Share::TYPE_EXTERNAL) {
164164
$needsUpdate = false;
165165

166-
if (!$effectiveShare->getTimeZoneName()) {
166+
// TODO: Remove UTC check after migration period — patches shares incorrectly saved with UTC default
167+
if (!$effectiveShare->getTimeZoneName() || $effectiveShare->getTimeZoneName() === 'UTC') {
167168
$clientTz = $this->userSession->getClientTimeZoneName();
168169
if ($clientTz) {
169170
$effectiveShare->setTimeZoneName($clientTz);

0 commit comments

Comments
 (0)