aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-18 14:55:01 +0100
committerMario <mario@mariovavti.com>2021-03-18 14:55:01 +0100
commit3ba42d3dcf252cd2c07f2f1b9c0b7d54cce759c9 (patch)
tree36358bdc3b8d408e8444743d71459c9d397c4d0b /include/security.php
parent9f26b7aa9c6e3ba50de5a0780c917cabad7367f6 (diff)
downloadvolse-hubzilla-3ba42d3dcf252cd2c07f2f1b9c0b7d54cce759c9.tar.gz
volse-hubzilla-3ba42d3dcf252cd2c07f2f1b9c0b7d54cce759c9.tar.bz2
volse-hubzilla-3ba42d3dcf252cd2c07f2f1b9c0b7d54cce759c9.zip
air: deal with timezones when displaying open/close time - this should finally fix issue #1544
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/security.php b/include/security.php
index 18107d5cb..4643de105 100644
--- a/include/security.php
+++ b/include/security.php
@@ -850,7 +850,7 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
$isduty = get_config('system', 'register_duty_jso');
- if (!$isduty)
+ if (!$isduty)
return (bool)false;
is_null($wd) ? $wd = date('N') : '';
@@ -863,7 +863,7 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
$wd === 0 ? $wd = 7 : '';
$duty = json_decode($isduty, true);
- if (!$duty)
+ if (!$duty)
return (bool)false;
switch ($op) {
@@ -883,7 +883,7 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
}
return $dutyis;
break;
-
+
case 'nextOpen':
/**
* Look for next period opens
@@ -923,7 +923,7 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
if ($dd >= $myd && $dh >= $myh && !$tf)
return array($dd, $dh);
else
- continue;
+ continue;
}
}
return $is1; // false or array
@@ -933,7 +933,7 @@ function zarIsDuty($wd=NULL, $hhmm=NULL, $op='isOpen') {
//
break;
}
-
+
}