diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-07-11 11:12:27 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-07-11 11:12:27 +0200 |
commit | 407b02bde8cc8492eefc9260c8ae6becfee2211a (patch) | |
tree | 554ba14c4030696b1eca6ede11abd547daabeedd /Zotlabs/Module/Channel_calendar.php | |
parent | da7912b8791d4dce6c7c014be86ee6ae68f1217c (diff) | |
download | volse-hubzilla-407b02bde8cc8492eefc9260c8ae6becfee2211a.tar.gz volse-hubzilla-407b02bde8cc8492eefc9260c8ae6becfee2211a.tar.bz2 volse-hubzilla-407b02bde8cc8492eefc9260c8ae6becfee2211a.zip |
calendar: revert back to UTC strings for dates due to better legibility. Strip timezone info from UTC string and always treat values as UTC.
Diffstat (limited to 'Zotlabs/Module/Channel_calendar.php')
-rw-r--r-- | Zotlabs/Module/Channel_calendar.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Channel_calendar.php b/Zotlabs/Module/Channel_calendar.php index 109b18f37..7d75a7e41 100644 --- a/Zotlabs/Module/Channel_calendar.php +++ b/Zotlabs/Module/Channel_calendar.php @@ -21,7 +21,7 @@ class Channel_calendar extends \Zotlabs\Web\Controller { $event_hash = ((x($_POST,'event_hash')) ? $_POST['event_hash'] : ''); $xchan = ((x($_POST,'xchan')) ? dbesc($_POST['xchan']) : ''); - $uid = local_channel(); + $uid = local_channel(); // only allow editing your own events. if(($xchan) && ($xchan !== get_observer_hash())) @@ -34,8 +34,8 @@ class Channel_calendar extends \Zotlabs\Web\Controller { $adjust = intval($_POST['adjust']); - $start = (($adjust) ? datetime_convert($tz, 'UTC', escape_tags($_REQUEST['dtstart'])) : datetime_convert('UTC', 'UTC', escape_tags($_REQUEST['dtstart']))); - $finish = (($adjust) ? datetime_convert($tz, 'UTC', escape_tags($_REQUEST['dtend'])) : datetime_convert('UTC', 'UTC', escape_tags($_REQUEST['dtend']))); + $start = datetime_convert('UTC', 'UTC', escape_tags($_REQUEST['dtstart'])); + $finish = datetime_convert('UTC', 'UTC', escape_tags($_REQUEST['dtend'])); $summary = escape_tags(trim($_POST['summary'])); $desc = escape_tags(trim($_POST['desc'])); |