[CLOSED] timefield 24 hour problem

  1. #1

    [CLOSED] timefield 24 hour problem

    Hi there,

    this is my timefield (which belongs to me ;) :

                                                    Html.X().TimeFieldFor(m=>m.ES_S3)
                                                    .ID("time_ES_S3")
                                                    .ForceSelection(false)
                                                    .AutoSelect(false)
                                                    .Listeners(li => { li.Render.Handler = "this.on('beforequery', function () { return false; });"; })
                                                    .HideBaseTrigger(true)
                                                    .Increment(1)
                                                    .Width(60)
                                                    .LabelAlign(LabelAlign.Top)
                                                    .FieldLabel("S3 Zeit")
                                                    .Format("H:i")
    Everything is fine, besides the following :

    When I enter values from 0000 to 1259 I get 00:00 to 12:59.
    From 1301 to 2359 I get this is not a valid time.
    I tried different timeformats like HH:mm, I changed the locale="de-DE" nothing helps.

    I need the customer to enter 1305 to render like 13:05 ......

    Why does it work until 1259 ???

    Regards,
    Holger
    Last edited by Daniil; Oct 26, 2012 at 4:53 AM. Reason: [CLOSED]
  2. #2
    Hi Holger,

    You should set up respective AllFormats.

    Example
    <ext:TimeField runat="server" Format="H:mm" AltFormats="HHmm|Hmm">
        <Listeners>
            <BeforeQuery Handler="return false;" />
        </Listeners>
    </ext:TimeField>
    See also
    http://docs.sencha.com/ext-js/4-1/#!...cfg-altFormats

    Also please note that you should use .NET time format when setting up the Format and AllFormats properties.
  3. #3

    That's it

    You made my day ;)

Similar Threads

  1. how to change the hour in the demo My Calendar
    By diego0404 in forum 1.x Help
    Replies: 2
    Last Post: Feb 01, 2012, 12:03 AM
  2. TimeField and en-US culture problem
    By Ealirene in forum 1.x Help
    Replies: 1
    Last Post: Mar 21, 2011, 8:00 AM
  3. Timefield Problem(am/pm)
    By kiran malgi in forum 1.x Help
    Replies: 4
    Last Post: Jun 22, 2010, 4:31 AM
  4. [CLOSED] [1.0] TimeField Problem?
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 15, 2010, 2:43 PM
  5. [CLOSED] TimeFields problem with 12-hour clock
    By tdracz in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 13, 2009, 7:39 PM

Posting Permissions