From da24850547c7f52efb86da85ff913af4794dcca9 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Sun, 29 Dec 2019 16:22:56 +0000 Subject: [PATCH] 95_Astro: make tzset() more robust, change Version git-svn-id: https://svn.fhem.de/fhem/trunk@20848 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/95_Astro.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 16b285fd0..bebdf7b8e 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 95_Astro: make tzset() more robust, change Version - change: 73_AutoShuttersControl: little Bugfix, add devStateIcon Fn - change: 93_DbLog: avoid FHEM from crash if SVG requests a wrong date/time format, Forum: #101005 diff --git a/fhem/FHEM/95_Astro.pm b/fhem/FHEM/95_Astro.pm index edf9fbc8e..4b37e6d28 100644 --- a/fhem/FHEM/95_Astro.pm +++ b/fhem/FHEM/95_Astro.pm @@ -1174,7 +1174,7 @@ sub SUNRISE_EL_sr_alt($$$$$$$$$) { my $tz = AttrVal( $name, "timezone", AttrVal( "global", "timezone", undef ) ); local $ENV{TZ} = $tz if ($tz); - tzset() if ( exists &{'tzset'} ); + eval { tzset() if ( exists &{'tzset'} ) }; #my $nt = time; my @lt = localtime($nt); @@ -3196,7 +3196,7 @@ sub Get($@) { =end html_DE =for :application/json;q=META.json 95_Astro.pm { - "version": "v2.1.1", + "version": "v2.1.2", "author": [ "Prof. Dr. Peter A. Henning <>", "Julian Pawlowski <>",