[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_4-5321-g11609bd

Marc Delisle lem9 at users.sourceforge.net
Tue Jul 6 17:15:56 CEST 2010


The branch, master has been updated
       via  11609bdf80370732b66ba99edecb9febd5d16beb (commit)
      from  3e9e18aebb5d551f260e178f2f311384c2653b28 (commit)


- Log -----------------------------------------------------------------
commit 11609bdf80370732b66ba99edecb9febd5d16beb
Author: Marc Delisle <marc at infomarc.info>
Date:   Tue Jul 6 11:15:46 2010 -0400

    must specify dateFormat for jQuery UI datepicker, otherwise a wrong MM/DD/YYYY is passed to MySQL

-----------------------------------------------------------------------

Summary of changes:
 tbl_change.php |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tbl_change.php b/tbl_change.php
index 051b1fc..61ccadc 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -1080,6 +1080,7 @@ foreach ($rows as $row_id => $vrow) {
                 if ($field['pma_type'] == 'date' || $field['pma_type'] == 'datetime' || substr($field['pma_type'], 0, 9) == 'timestamp') {
                     // the _3 suffix points to the date field
                     // the _2 suffix points to the corresponding NULL checkbox
+                    // in dateFormat, 'yy' means the year with 4 digits
                     ?>
 <script type="text/javascript">
 //<![CDATA[
@@ -1090,6 +1091,7 @@ $(function() {
 		 stepMinutes: 1,
         stepHours: 1,
         <?php echo ($field['pma_type'] == 'date' ? "showTime: false,":"showTime: true,"); ?>
+        dateFormat: 'yy-mm-dd',
 		altTimeField: '',
         constrainInput: false
      });


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list