From 93185afc1dd912a008252453c1e4bbc68c9ca64e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 22 Jun 2020 08:31:26 +0200 Subject: localtxt2ics: fix use offset-based timezone (name-based timezones unsupported by Data::Ical) --- localtxt2ics | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'localtxt2ics') 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; -- cgit v1.2.3