diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-06-22 08:31:26 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-06-22 08:31:26 +0200 |
commit | 93185afc1dd912a008252453c1e4bbc68c9ca64e (patch) | |
tree | f3503a702d85ea0d5f95c5751ac8226336e38607 /localtxt2ics | |
parent | d407f23cc8a176aa1c69d7d677670cbe42593958 (diff) |
localtxt2ics: fix use offset-based timezone (name-based timezones unsupported by Data::Ical)
Diffstat (limited to 'localtxt2ics')
-rwxr-xr-x | localtxt2ics | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/localtxt2ics b/localtxt2ics index 6b154af..284775a 100755 --- a/localtxt2ics +++ b/localtxt2ics @@ -66,6 +66,8 @@ while ( minute => $6 || '00', time_zone => $tz, ); + # Data::ICal does not support named timezones + $dtstart->set_time_zone( $dtstart->offset() ); if ( defined($7) ) { $dtend = DateTime->new( year => $3, @@ -75,6 +77,8 @@ while ( minute => $8 || '00', time_zone => $tz, ); + # Data::ICal does not support named timezones + $dtend->set_time_zone( $dtend->offset() ); } my $location = $4; my $summary = $9; |