aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/lib/DateTimeParser.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-15 17:44:21 -0700
committerzotlabs <mike@macgirvin.com>2017-03-15 17:44:21 -0700
commitb20062efa6052e29b8d2d2a42ca966837db1c29f (patch)
treeb3d1dd541319e2abb2af6ec62f2fa3003a9e3941 /vendor/sabre/vobject/lib/DateTimeParser.php
parent14f16a7ef0ce1412fcccdabf6a44dd83efee9c60 (diff)
parent8d4744d115036dd7ec4169f8b1fdebebac6fb602 (diff)
downloadvolse-hubzilla-b20062efa6052e29b8d2d2a42ca966837db1c29f.tar.gz
volse-hubzilla-b20062efa6052e29b8d2d2a42ca966837db1c29f.tar.bz2
volse-hubzilla-b20062efa6052e29b8d2d2a42ca966837db1c29f.zip
Merge branch 'red' of https://github.com/zotlabs/hubzilla into red
Diffstat (limited to 'vendor/sabre/vobject/lib/DateTimeParser.php')
-rw-r--r--vendor/sabre/vobject/lib/DateTimeParser.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/vendor/sabre/vobject/lib/DateTimeParser.php b/vendor/sabre/vobject/lib/DateTimeParser.php
index 443bbb660..f9a802d25 100644
--- a/vendor/sabre/vobject/lib/DateTimeParser.php
+++ b/vendor/sabre/vobject/lib/DateTimeParser.php
@@ -2,9 +2,9 @@
namespace Sabre\VObject;
+use DateInterval;
use DateTimeImmutable;
use DateTimeZone;
-use DateInterval;
/**
* DateTimeParser.
@@ -509,7 +509,7 @@ class DateTimeParser {
static function parseVCardDateAndOrTime($date) {
// \d{8}|\d{4}-\d\d|--\d\d(\d\d)?|---\d\d
- $valueDate = '/^(?J)(?:' .
+ $valueDate = '/^(?J)(?:' .
'(?<year>\d{4})(?<month>\d\d)(?<date>\d\d)' .
'|(?<year>\d{4})-(?<month>\d\d)' .
'|--(?<month>\d\d)(?<date>\d\d)?' .
@@ -517,7 +517,7 @@ class DateTimeParser {
')$/';
// (\d\d(\d\d(\d\d)?)?|-\d\d(\d\d)?|--\d\d)(Z|[+\-]\d\d(\d\d)?)?
- $valueTime = '/^(?J)(?:' .
+ $valueTime = '/^(?J)(?:' .
'((?<hour>\d\d)((?<minute>\d\d)(?<second>\d\d)?)?' .
'|-(?<minute>\d\d)(?<second>\d\d)?' .
'|--(?<second>\d\d))' .
@@ -554,12 +554,12 @@ class DateTimeParser {
];
// The $valueDateTime expression has a bug with (?J) so we simulate it.
- $parts['date0'] = &$parts['date'];
- $parts['date1'] = &$parts['date'];
- $parts['date2'] = &$parts['date'];
+ $parts['date0'] = &$parts['date'];
+ $parts['date1'] = &$parts['date'];
+ $parts['date2'] = &$parts['date'];
$parts['month0'] = &$parts['month'];
$parts['month1'] = &$parts['month'];
- $parts['year0'] = &$parts['year'];
+ $parts['year0'] = &$parts['year'];
foreach ($parts as $part => &$value) {
if (!empty($matches[$part])) {