Add Temporal::timezoneNow() shorthand for Temporal::convert()

This commit is contained in:
Hypolite Petovan 2018-01-26 19:14:15 -05:00
commit 89602e44da
8 changed files with 31 additions and 20 deletions

View file

@ -402,7 +402,7 @@ function photos_post(App $a)
$resource_id = $a->argv[2];
if (!strlen($albname)) {
$albname = Temporal::convert('now', date_default_timezone_get(), 'UTC', 'Y');
$albname = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
}
if (x($_POST,'rotate') !== false &&
@ -738,7 +738,7 @@ function photos_post(App $a)
if (strlen($newalbum)) {
$album = $newalbum;
} else {
$album = Temporal::convert('now', date_default_timezone_get(), 'UTC', 'Y');
$album = Temporal::timezoneNow(date_default_timezone_get(), 'Y');
}
}