2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-09 07:44:19 +00:00

98_todoist: bugfix for due date string

git-svn-id: https://svn.fhem.de/fhem/trunk@20978 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
marvin78 2020-01-14 18:22:29 +00:00
parent a9b2ee4f41
commit 3c5feb0ef0

View File

@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
#######################
# Global variables
my $version = "1.3.3";
my $version = "1.3.4";
my $srandUsed;
@ -655,6 +655,8 @@ sub todoist_CreateTask($$) {
## if someone uses due_date - no problem
$data->{'date_string'} = $h->{"due_date"} if ($h->{"due_date"});
$data->{'date_string'} = encode_utf8($data->{'date_string'});
## Task parent_id
$data->{'parent_id'} = int($h->{"parent_id"}) if ($h->{"parent_id"});
$data->{'parent_id'} = int($h->{"parentID"}) if ($h->{"parentID"});