diff --git a/bug_actiongroup_page.php b/bug_actiongroup_page.php
index 257cd453b5..a6704b72ca 100644
--- a/bug_actiongroup_page.php
+++ b/bug_actiongroup_page.php
@@ -285,7 +285,7 @@
echo '';
echo '';
} else {
diff --git a/bug_change_status_page.php b/bug_change_status_page.php
index 053ccaaa86..8b982cafbd 100644
--- a/bug_change_status_page.php
+++ b/bug_change_status_page.php
@@ -243,7 +243,7 @@
value="" />
|
diff --git a/bug_report_page.php b/bug_report_page.php
index 5ce2063e8c..9d7b6060bd 100644
--- a/bug_report_page.php
+++ b/bug_report_page.php
@@ -357,7 +357,7 @@ class="dropzone-form"
' ?>
|
diff --git a/bug_update_page.php b/bug_update_page.php
index adb8a49c70..ce0185022a 100644
--- a/bug_update_page.php
+++ b/bug_update_page.php
@@ -339,8 +339,7 @@
$t_date_to_display = date( config_get( 'normal_date_format' ), $t_bug->due_date );
}
echo '';
echo '';
} else {
diff --git a/config_defaults_inc.php b/config_defaults_inc.php
index 0567014931..0d3fd732b9 100644
--- a/config_defaults_inc.php
+++ b/config_defaults_inc.php
@@ -1168,6 +1168,14 @@
*/
$g_datetime_picker_format = 'Y-MM-DD HH:mm';
+/**
+ * Datetime picker widget format string for date only.
+ * For detailed instructions on date formatting
+ * @see http://momentjs.com/docs/#/displaying/format/
+ * @global string $g_datetime_picker_format
+ */
+$g_date_picker_format = 'Y-MM-DD';
+
##############################
# MantisBT TimeZone Settings #
##############################
diff --git a/core/date_api.php b/core/date_api.php
index 0091fce77d..2ea2673507 100644
--- a/core/date_api.php
+++ b/core/date_api.php
@@ -245,64 +245,16 @@ function print_date_selection_set( $p_name, $p_format, $p_date = 0, $p_default_d
if( $p_default_disable == true ) {
$t_disable = ' readonly="readonly"';
}
+ $t_blank_line = '';
+ if( $p_allow_blank == true ) {
+ $t_blank_line = '';
+ }
echo '';
echo '';
}
-
-/**
- * Converts php date format string to moment.js date format.
- * This function is used primarily with datetime picker widget.
- * @param string $p_php_format Php date format string: http://php.net/manual/en/function.date.php
- * @return string in moment.js format: http://momentjs.com/docs/#/displaying/format/
- * @access public
- */
-function convert_php_to_date_format( $p_php_format )
-{
- $t_replacements = array(
- 'd' => 'DD',
- 'D' => 'ddd',
- 'j' => 'D',
- 'l' => 'dddd',
- 'N' => 'E',
- 'S' => 'o',
- 'w' => 'e',
- 'z' => 'DDD',
- 'W' => 'W',
- 'F' => 'MMMM',
- 'm' => 'MM',
- 'M' => 'MMM',
- 'n' => 'M',
- 't' => '', // no equivalent
- 'L' => '', // no equivalent
- 'o' => 'YYYY',
- 'Y' => 'YYYY',
- 'y' => 'YY',
- 'a' => 'a',
- 'A' => 'A',
- 'B' => '', // no equivalent
- 'g' => 'h',
- 'G' => 'H',
- 'h' => 'hh',
- 'H' => 'HH',
- 'i' => 'mm',
- 's' => 'ss',
- 'u' => 'SSS',
- 'e' => 'zz', // deprecated since version 1.6.0 of moment.js
- 'I' => '', // no equivalent
- 'O' => '', // no equivalent
- 'P' => '', // no equivalent
- 'T' => '', // no equivalent
- 'Z' => '', // no equivalent
- 'c' => '', // no equivalent
- 'r' => '', // no equivalent
- 'U' => 'X',
- );
-
- return strtr( $p_php_format, $t_replacements );
-}
\ No newline at end of file
diff --git a/core/filter_form_api.php b/core/filter_form_api.php
index 70df2974fc..03ae08e213 100644
--- a/core/filter_form_api.php
+++ b/core/filter_form_api.php
@@ -1287,7 +1287,7 @@ function print_filter_do_filter_by_date( $p_hide_checkbox = false, array $p_filt
echo '';
echo '';
?>
@@ -1303,7 +1303,7 @@ function print_filter_do_filter_by_date( $p_hide_checkbox = false, array $p_filt
echo '';
echo '';
?>
@@ -1380,7 +1380,7 @@ function print_filter_do_filter_by_last_updated_date( $p_hide_checkbox = false,
echo '';
echo '';
?>
@@ -1396,7 +1396,7 @@ function print_filter_do_filter_by_last_updated_date( $p_hide_checkbox = false,
echo '';
echo '';
?>
diff --git a/manage_proj_ver_edit_page.php b/manage_proj_ver_edit_page.php
index def6162ee9..0273575707 100644
--- a/manage_proj_ver_edit_page.php
+++ b/manage_proj_ver_edit_page.php
@@ -99,7 +99,7 @@
|