Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F10596
patch.txt
bruederli (Thomas Brüderli)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
bruederli
Jun 4 2015, 4:36 PM
2015-06-04 16:36:36 (UTC+2)
Size
1 KB
Referenced Files
None
Subscribers
None
patch.txt
View Options
commit dddd8d00bb14e5cd75056f9ea0c6ab138d00605e
Author: root <root@ops-data3.monmouth.com>
Date: Wed Jun 3 11:48:23 2015 -0400
Fixed bug in generating TZOFFSETFROM and TZOFFSETTO
diff --git a/plugins/libcalendaring/libvcalendar.php b/plugins/libcalendaring/libvcalendar.php
index 38441e0..df87df8 100644
--- a/plugins/libcalendaring/libvcalendar.php
+++ b/plugins/libcalendaring/libvcalendar.php
@@ -1303,8 +1303,8 @@ class libvcalendar implements Iterator
$offset = $trans['offset'] / 3600;
$cmp->DTSTART = $dt->format('Ymd\THis');
- $cmp->TZOFFSETFROM = sprintf('%s%02d%02d', $tzfrom >= 0 ? '+' : '', floor($tzfrom), ($tzfrom - floor($tzfrom)) * 60);
- $cmp->TZOFFSETTO = sprintf('%s%02d%02d', $offset >= 0 ? '+' : '', floor($offset), ($offset - floor($offset)) * 60);
+ $cmp->TZOFFSETFROM = sprintf('%s%02d%02d', $tzfrom >= 0 ? '+' : '-', abs(floor($tzfrom)), ($tzfrom - floor($tzfrom)) * 60);
+ $cmp->TZOFFSETTO = sprintf('%s%02d%02d', $offset >= 0 ? '+' : '-', abs(floor($offset)), ($offset - floor($offset)) * 60);
if (!empty($trans['abbr'])) {
$cmp->TZNAME = $trans['abbr'];
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
10443
Default Alt Text
patch.txt (1 KB)
Attached To
Mode
T428: Invalid VTIMEZONE definitions for negative offsets to UTC
Attached
Detach File
Event Timeline
Log In to Comment