View unanswered posts | View active topics
|
Page 1 of 1
|
[ 2 posts ] |
|
| Author |
Message |
|
ocset
|
Post subject: Datetime formatting - remove seconds Posted: Tue Jun 07, 2011 2:41 pm |
|
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 |
|
 |
|
akasha
|
Post subject: Re: Datetime formatting - remove seconds Posted: Thu Jun 09, 2011 11:07 am |
|
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 |
|
 |
|
Page 1 of 1
|
[ 2 posts ] |
|
|
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
|