Skip to content

Commit

Permalink
Merge pull request #169 from thinkshout/fix-utc-dates
Browse files Browse the repository at this point in the history
Add back the Z marker for UTC times
  • Loading branch information
lptn committed Mar 2, 2023
2 parents 8593a78 + 47643c6 commit d6f6c5e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/Generators/Ics.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Ics implements Generator
/** @var string {@see https://www.php.net/manual/en/function.date.php} */
protected $dateFormat = 'Ymd';
/** @var string */
protected $dateTimeFormat = 'Ymd\THis';
protected $dateTimeFormat = 'Ymd\THis\Z';

/** @var array<non-empty-string, non-empty-string> */
protected $options = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:9fc99e4f3dcee13f23355d63918b9a0c
SUMMARY:Birthday Party +1
DTSTAMP:20180201T090000
DTSTART:20180201T090000
DTEND:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog.\nThere will be line breaks on it.\nProject link calendar-links\n\n\nThank you.\n
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:2009a227b7dd438a285434127f67f267
SUMMARY:New Year
DTSTAMP:20191231T230000
DTSTART:20191231T230000
DTEND:20200101T010000
DTSTAMP:20191231T230000Z
DTSTART:20191231T230000Z
DTEND:20200101T010000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:94ab75add84a67c019eae57539658036
SUMMARY:Birthday
DTSTAMP:20180201T090000
DTSTART:20180201T090000
DTEND:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:random-uid
SUMMARY:Birthday
DTSTAMP:20180201T090000
DTSTART:20180201T090000
DTEND:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:94ab75add84a67c019eae57539658036
SUMMARY:Birthday
DTSTAMP:20180201T090000
DTSTART:20180201T090000
DTEND:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ PRODID:Spatie calendar-links
BEGIN:VEVENT
UID:94ab75add84a67c019eae57539658036
SUMMARY:Birthday
DTSTAMP:20180201T090000
DTSTART:20180201T090000
DTEND:20180201T180000
DTSTAMP:20180201T090000Z
DTSTART:20180201T090000Z
DTEND:20180201T180000Z
DESCRIPTION:With balloons\, clowns and stuff\nBring a dog\, bring a frog
LOCATION:Party Lane 1A\, 1337 Funtown
END:VEVENT
Expand Down

0 comments on commit d6f6c5e

Please sign in to comment.