EasyUI Forum

General Category => Bug Report => Topic started by: Kevin on May 03, 2012, 05:37:00 AM



Title: Problem with DateTimeBox
Post by: Kevin on May 03, 2012, 05:37:00 AM
I've been trying to disable the showing of seconds in the DateTimeBox but this does not seem to work. It does work for the TimeSpinner. I also noticed that if you don't set the seconds part when setting the date time value, you get a NaN error in the date time string. The code I used to test with was;
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
   <head>
      <title>jQuery Date Time Inout</title>
      <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
      <link rel="stylesheet" type="text/css" href="http://www.jeasyui.com/easyui/themes/icon.css">
      <script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
      <script type="text/javascript" src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
      <script type="text/javascript">
          $(function () {
             $('#dt').datetimebox({
                showSeconds: false
             });
          });
      </script>
   </head>
   <body>
      <form id="ff" method="post">
         <div>
            <label for="name">Date:</label>
            <input id="dt" type="text"></input>
         </div>
      </form>
   </body>
</html>


Title: Re: Problem with DateTimeBox
Post by: stworthy on May 03, 2012, 07:18:57 PM
This bug has been fixed. Please download the fixed datetimebox plugin from http://www.jeasyui.com/easyui/plugins/jquery.datetimebox.js


Title: Re: Problem with DateTimeBox
Post by: Kevin on May 07, 2012, 01:44:59 AM
Thanks stworthy for your quick update to fix this. Works great.