[Freeipa-devel] [PATCH] admiyo-0192-column-formatting

Endi Sukma Dewata edewata at redhat.com
Thu Feb 10 23:35:38 UTC 2011


On 2/10/2011 5:00 PM, Adam Young wrote:
>> Should we use one of these functions?
>> http://www.w3schools.com/jsref/jsref_tostring_date.asp
>> http://www.w3schools.com/jsref/jsref_tolocalestring.asp
>> http://www.w3schools.com/jsref/jsref_toutcstring.asp

> Our dates are not conisdered valid dates, so we can't just use them.

Isn't it a valid UTC time? We can parse it like what you're doing now 
using substring(), then use the values to construct a Date object in JS. 
Then we can invoke one of the above methods to display a properly 
formatted date.

-- 
Endi S. Dewata




More information about the Freeipa-devel mailing list