-
22 Apr 2010 1:43 AM #11
If i don't multiplied by 1000 i don't get the date correctly.
Attachment 20073
I really don't know what to do and where to check what is wrong.
I told you i find this example on internet.
-
22 Apr 2010 1:44 AM #12
Code:datestamp:function(value) { value=value?new Date( value*1000 ).format("d-m-Y"):'N/A'; return value; }
-
22 Apr 2010 1:47 AM #13
test this function
Code:renderDate = function (v,params,record) { var dt = new Date(v); return dt.format('d/m/Y'); }
-
22 Apr 2010 1:55 AM #14
-
22 Apr 2010 2:05 AM #15
you have a problem in the initial value of the date. send the json plz
-
22 Apr 2010 6:24 AM #16
-
22 Apr 2010 7:40 AM #17
-
22 Apr 2010 7:56 AM #18
You have a script that is producing JSON output to populate your grid. Take the output from that script and look at the date field and see why it isn't working the way you are hoping it to.
It might actually be easier to change your SQL to produce more "formatted" date information, rather than using UNIX_TIMESTAMP. Return the date, from your database, in the format you want to display it, and then rendering becomes a moot point.
-
22 Apr 2010 8:52 AM #19
Please find attached the JSON.php file archived as a zip file.
Is this what you need to check to see what is the problem ?
JSON.zip
-
22 Apr 2010 9:25 AM #20
Is the information in that file what you see in your grid? Of course not.
You need to debug the output of
to see why your date data isn't what you are expecting.Code:proxy: new Ext.data.HttpProxy({url: 'data.php?mode=load_form&form=incident_equip'})


Reply With Quote