is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 9 years ago

Closed 9 years ago

#1485 closed enhancement (fixed)


Reported by: isepman Owned by: isepman
Priority: low Milestone: Jelix 1.3.4
Component: jelix:forms Version: 1.3.3
Severity: minor Keywords: jDatatypeTime
Cc: dhuguet@… Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:


Hi, In my application, I want to allow the user to store hour data as hh:mm (without seconds)

It seems that a control with jDatatypeTime needs the seconds to validate with form->check. (even if apparently, jForms_jquery.js allows hours without seconds) It can be boring to append ":00" each time to the value of each time control data.

I wrote a short patch to create a new datatype (localeTimeShort), and added LocaleTimeShort? to jDateTime and jforms compiler. Now, I can add localetimeshort to my controls in xml to actually be able to check time data without seconds.

Here is my patch.

Attachments (1)

patch.txt (4.3 KB) - added by isepman 9 years ago.
localetimeshort datatype

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by isepman

localetimeshort datatype

comment:1 Changed 9 years ago by isepman

  • Cc dhuguet@… added

comment:2 Changed 9 years ago by laurentj

  • Status changed from new to confirmed

Could you please use Github to do a pull request ? thanks.

comment:3 Changed 9 years ago by laurentj

  • Owner set to isepman
  • Status changed from confirmed to assigned

comment:4 Changed 9 years ago by laurentj

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.