Commit 1543ba74 authored by Marius Burkard's avatar Marius Burkard

- fixed autoresponder datetime validation in remote API

parent 26922bd7
......@@ -52,8 +52,9 @@ class validate_autoresponder extends validate_datetime
//$start_date = $app->tform_actions->dataRecord['autoresponder_start_date'];
// Parse date
$start_date_array = date_parse_from_format($app->lng('conf_format_datetime'),$start_date);
$end_date_array = date_parse_from_format($app->lng('conf_format_datetime'),$field_value);
$datetimeformat = (isset($app->remoting_lib) ? $app->remoting_lib->datetimeformat : $app->tform->datetimeformat);
$start_date_array = date_parse_from_format($datetimeformat,$start_date);
$end_date_array = date_parse_from_format($datetimeformat,$field_value);
//calculate timestamps
$start_date_tstamp = mktime($start_date_array['hour'], $start_date_array['minute'], $start_date_array['second'], $start_date_array['month'], $start_date_array['day'], $start_date_array['year']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment