diff --git a/functions.js b/functions.js index ee92674eb..2a4268e8c 100644 --- a/functions.js +++ b/functions.js @@ -628,7 +628,7 @@ function filterDlgCheckDate() { var reply = JSON.parse(transport.responseText); if (reply['result'] == true) { - alert(__("Date syntax appears to be correct.")); + alert(__("Date syntax appears to be correct:") + " " + reply['date']); return; } else { alert(__("Date syntax is incorrect.")); diff --git a/modules/backend-rpc.php b/modules/backend-rpc.php index 4f2ba252f..0630d8821 100644 --- a/modules/backend-rpc.php +++ b/modules/backend-rpc.php @@ -456,7 +456,8 @@ $date = db_escape_string($_REQUEST["date"]); $date_parsed = strtotime($date); - print json_encode(array("result" => (bool)$date_parsed)); + print json_encode(array("result" => (bool)$date_parsed, + "date" => date("c", $date_parsed))); return; } diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 78962dc6c..02459ba84 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -466,7 +466,8 @@ name=\"reg_exp\" value=\"$reg_exp\"/>"; print ""; - print " "; print "";