It is currently Tue May 22, 2012 11:25 pm

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Datetime formatting - remove seconds
PostPosted: Tue Jun 07, 2011 2:41 pm 
Offline

Joined: Tue Mar 09, 2010 4:08 pm
Posts: 117
Hi

The base calendar uses "fields.datetime" for the start and end date of a meeting. Now I am all for being precise, but booking a meeting for 14:40:37 would be a bit extreme and the date picker does not default to "00" for the seconds.

Any one know how best to format this so that it only shows Hours:Min, even though it may be storing the seconds?

Do I need to write a function or is there a special format command for a <field> tag?

Thanks
O


Top
 Profile  
 
 Post subject: Re: Datetime formatting - remove seconds
PostPosted: Thu Jun 09, 2011 11:07 am 
Offline

Joined: Tue Dec 01, 2009 6:39 pm
Posts: 22
Location: Hungary
in one case we've solved this by an on_change function that parsed the given value, and corrected it by adding the second. (We expected our customer to provide the time by hand, like 8:20, and we've changed this necessary)

a nicer would be to extend the widget in your client (I guess the web client), the client could provide basic validating and formatting as needed.

_________________
ToolPart Team LLC


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP