]> git.mxchange.org Git - friendica.git/blobdiff - mod/photos.php
Add Temporal::localNow() shorthand for Temporal::convert()
[friendica.git] / mod / photos.php
index dac52b1d0585946e373091e97ce4f483f06b40c0..49b68a345daa0f923d6610611117dbff19bc4858 100644 (file)
@@ -402,7 +402,7 @@ function photos_post(App $a)
                $resource_id = $a->argv[2];
 
                if (!strlen($albname)) {
-                       $albname = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
+                       $albname = Temporal::localNow('Y');
                }
 
                if (x($_POST,'rotate') !== false &&
@@ -738,7 +738,7 @@ function photos_post(App $a)
                if (strlen($newalbum)) {
                        $album = $newalbum;
                } else {
-                       $album = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
+                       $album = Temporal::localNow('Y');
                }
        }