hi koen,

no problem at all! i'm glad you provide such great piece of code!

in WDateTime there's another weird thing:
when printing the datetime a date like
"2010-01-12 20:00:00"
gets
"Wed Feb 10 2010 20:00:00 GMT+0100 (CET)"

i think, there is something wrong with the month interpretation.

thanx,
johannes

> Hey Johannes,
> 
> 2010/1/18 Johannes Kepler <[email protected]>:
> > hi,
> >
> > it's working now.
> > i changed the datetime format from
> > "yyyy-MM-dd hh:mm:ss"
> >
> > to
> >
> > model->setData(r, 0,
> > boost::any(WDateTime(WDateTime::fromString(WString(result[i]["Date"]),
> > "yyyy- MM-dd HH:mm:ss"))));
> > (capital hour)
> >
> > is this a bug?
> > the reference says in WTime class
> > "hh -> The hour with leading zero (00-23 or 01-12 for AM/PM display)"
> > so normally it should be 00-23 unless there is no "a" or "ap" after the
> > time format.
> 
> Yes, unfortunately and painfully, I now recall having a "TODO: -fix
> AM/PM detection in format string" blinking in WDateTime.C which is
> probably the root cause of this problem.
> 
> Sorry for this. I'll fix it ASAP as act of pentitention.
> 
> Regards,
> koen
> 
> ---------------------------------------------------------------------------
> --- Throughout its 18-year history, RSA Conference consistently attracts
>  the world's best and brightest in the field, creating opportunities for
>  Conference attendees to learn about information security's most important
>  issues through interactions with peers, luminaries and emerging and
>  established companies. http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
> 

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to