diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php
index ffdf20cb..62ecfb59 100644
--- a/adminer/lang/cs.inc.php
+++ b/adminer/lang/cs.inc.php
@@ -281,6 +281,8 @@ $translations = array(
'$1-$3-$5' => '$6.$4.$1',
// hint for date format - use language equivalents for day, month and year shortcuts
'[yyyy]-mm-dd' => 'd.m.[rrrr]',
+ // hint for time format - use language equivalents for hour, minute and second shortcuts
+ 'HH:MM:SS' => 'HH:MM:SS',
'now' => 'teď',
// general SQLite error in create, drop or rename database
diff --git a/changes.txt b/changes.txt
index 801b4511..3b39e6a3 100644
--- a/changes.txt
+++ b/changes.txt
@@ -12,6 +12,7 @@ Set MySQL time zone by PHP setting
Disable maxlength with functions in edit
Better placement of AJAX icon
Table header in CSV export (Editor)
+Time format hint (Editor)
Polish translation
Adminer 3.2.0 (released 2011-02-24):
diff --git a/editor/include/adminer.inc.php b/editor/include/adminer.inc.php
index 775725c6..39c7d039 100644
--- a/editor/include/adminer.inc.php
+++ b/editor/include/adminer.inc.php
@@ -420,8 +420,15 @@ ORDER BY ORDINAL_POSITION", null, "") as $row) { //! requires MySQL 5
if (ereg("(tinyint|bit)\\(1\\)", $field["full_type"])) { // bool
return '";
}
+ $hint = "";
+ if (ereg('time', $field["type"])) {
+ $hint = lang('HH:MM:SS');
+ }
if (ereg('date|timestamp', $field["type"])) {
- return " (" . lang('[yyyy]-mm-dd') . ")"; //! maxlength
+ $hint = lang('[yyyy]-mm-dd') . ($hint ? " [$hint]" : "");
+ }
+ if ($hint) {
+ return " ($hint)"; //! maxlength
}
if (eregi('_(md5|sha1)$', $field["field"])) {
return "";