]> git.joonet.de Git - adminer.git/commitdiff
Remove .lcZ from timeFormat (bug #593)
authorJakub Vrana <jakub@vrana.cz>
Thu, 8 Feb 2018 10:52:11 +0000 (11:52 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 8 Feb 2018 10:52:11 +0000 (11:52 +0100)
plugins/edit-calendar.php

index c8a4ac4be7d794a617bba5a0377102709e75dc75..a1b510f40078c1f85f7700c7ec1d9ac9e74c65e9 100644 (file)
@@ -43,7 +43,7 @@ class AdminerEditCalendar {
        function editInput($table, $field, $attrs, $value) {
                if (preg_match("~date|time~", $field["type"])) {
                        $dateFormat = "changeYear: true, dateFormat: 'yy-mm-dd'"; //! yy-mm-dd regional
-                       $timeFormat = "showSecond: true, timeFormat: 'HH:mm:ss.lcZ', timeInput: true";
+                       $timeFormat = "showSecond: true, timeFormat: 'HH:mm:ss', timeInput: true";
                        return "<input id='fields-" . h($field["field"]) . "' value='" . h($value) . "'" . (@+$field["length"] ? " maxlength='" . (+$field["length"]) . "'" : "") . "$attrs>" . script(
                                "jQuery('#fields-" . js_escape($field["field"]) . "')."
                                . ($field["type"] == "time" ? "timepicker({ $timeFormat })"