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

Adam Young ayoung at redhat.com
Fri Feb 11 17:50:52 UTC 2011


On 02/10/2011 06:35 PM, Endi Sukma Dewata wrote:
> 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.
>
Using Date format, but only for GMT
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-admiyo-0192-2-column-formatting.patch
Type: text/x-patch
Size: 4367 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110211/7bb24086/attachment.bin>


More information about the Freeipa-devel mailing list