Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028607Openbravo ERPA. Platformpublic2015-01-14 11:132015-01-29 14:56
egoitz 
AugustoMauch 
normalminoralways
newopen 
5
 
 
Core
No
0028607: The format method for smartclient is not formating properly the Date variables.
The format method for smartclient is not formating properly the Date variables.

That method is not used at Openbravo, but if you want create a manual window and you need to format the data with that method you will get an incorrect format.
Access to Openbravo and open the developers tools.

Case 1:
Write
var a = new Date('Wed Jan 07 2015 11:01:00 GMT+0000 ((GMT Standard Time)')
then
a.format('hh:mma');
You get 12:01 AM when you should get 12:01 PM

Case 2
Write
var a = new Date('Wed Jan 07 2015 23:01:00 GMT+0000 ((GMT Standard Time)');
then
a.format('hh:mma');
you get 00:01 AM when you should get 12:01 AM


No tags attached.
Issue History
2015-01-14 11:13egoitzNew Issue
2015-01-14 11:13egoitzAssigned To => AugustoMauch
2015-01-14 11:13egoitzModules => Core
2015-01-14 11:13egoitzResolution time => 1427839200
2015-01-14 11:13egoitzTriggers an Emergency Pack => No
2015-01-14 12:46egoitzDescription Updatedbug_revision_view_page.php?rev_id=7441#r7441
2015-01-29 14:56alostaleResolution time1427839200 =>
2015-01-29 14:56alostaleNote Added: 0073904
2015-01-29 14:56alostaleTypedefect => design defect

Notes
(0073904)
alostale   
2015-01-29 14:56   
Moved to design defect as it is an SmartClient issue, reported here: http://forums.smartclient.com/showthread.php?t=32203 [^]