svn commit: r927708 - /ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r927708 - /ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js

jonesde
Author: jonesde
Date: Fri Mar 26 06:46:05 2010
New Revision: 927708

URL: http://svn.apache.org/viewvc?rev=927708&view=rev
Log:
Fixed issue with calendar where PM times were ALWAYS treated as AM times, now populates the date/time text box with the proper 24 hour time format

Modified:
    ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js

Modified: ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js?rev=927708&r1=927707&r2=927708&view=diff
==============================================================================
--- ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js (original)
+++ ofbiz/trunk/framework/images/webapp/images/calendarDateSelect/calendar_date_select.js Fri Mar 26 06:46:05 2010
@@ -43,7 +43,7 @@ Date.prototype.toFormattedString = funct
   var hour, str;
   str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" + Date.padded2(this.getDate());
 
-  if (include_time) { hour=this.getHours(); str += " " + this.getAMPMHour() + ":" + this.getPaddedMinutes() + ":" + this.getSeconds() + "." + this.getMilliseconds() }
+  if (include_time) { hour=this.getHours(); str += " " + this.getHours() + ":" + this.getPaddedMinutes() + ":" + this.getSeconds() + "." + this.getMilliseconds() }
   return str;
 }
 /* mod end*/