2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-18 12:06:04 +00:00

95_YAAHM.pm: Workaround für localtime.

git-svn-id: https://svn.fhem.de/fhem/trunk@15632 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2017-12-17 16:48:20 +00:00
parent 05b1f22ef8
commit ee89c51076

View File

@ -48,7 +48,7 @@ my $yaahmname;
my $yaahmlinkname = "Profile"; # link text
my $yaahmhiddenroom = "ProfileRoom"; # hidden room
my $yaahmpublicroom = "Unsorted"; # public room
my $yaahmversion = "1.32";
my $yaahmversion = "1.33";
my $firstcall = 1;
my %yaahm_transtable_EN = (
@ -948,7 +948,7 @@ sub YAAHM_Get($@) {
sub YAAHM_save($) {
my ($hash) = @_;
$hash->{DATA}{"savedate"} = localtime(time);
$hash->{DATA}{"savedate"} = sprintf("%s",localtime(time));
readingsSingleUpdate( $hash, "savedate", $hash->{DATA}{"savedate"}, 1 );
my $json = JSON->new->utf8;
my $jhash0 = eval{ $json->encode( $hash->{DATA} ) };