I'm playing with the DateTimeField at the moment, and if I set the time to
midnight I get "0" for hours and "00" for minutes.

It makes sense to me to pad minutes out to two digits.  Hours should
arguably be padded out to two digits if you're in 24-hour mode, but the
component doesn't do that at the moment.  I've not seen the hours value
disappearing when set to zero so far.

Charlie.



On Tue, Apr 15, 2008 at 7:59 AM, Johan Compagner <[EMAIL PROTECTED]>
wrote:

> I dont know exatly dont see an  example here, but i just guess you
> dont comply completely with the format and then the formatter just
> tries to interperd it.
>
> On 4/14/08, Federico Fanton <[EMAIL PROTECTED]> wrote:
> > On Sat, 12 Apr 2008 18:25:56 +0200
> > "Johan Compagner" <[EMAIL PROTECTED]> wrote:
> >
> > > I guess this has something to do with the format string that is used
> > > for your locale, just look int what dateformat is used in your case
> >
> > I'm sorry, but I cannot understand how the "blank hours" is related to a
> > locale issue.. I'm looking at DateTimeField source right now, and while
> > minutesField has a MINUTES_CONVERTER that does the zero-padding,
> hoursField
> > has nothing like that.. Am I missing something? Many thanks for your
> > attention.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to