Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 7
Registered: ‎01-28-2011
My Device: BB10
My Carrier: Developer

Is CustomDateFormat bug?

    QDateTime dt = QDateTime::currentDateTime();
    CustomDateFormatter *format = new CustomDateFormatter("ddd, dd MMM yyyy HH:mm:ss Z");
    return format->format(dt);

 

This result is "Jun 21, 2013 11:45:07 AM +0800"  that 'AM' always print. why?

Highlighted
Developer
Posts: 410
Registered: ‎06-03-2010
My Device: Z10 Red
My Carrier: Free

Re: Is CustomDateFormat bug?

[ Edited ]

Put hh instead of HH

 

But that's strange, it is not the only problem, the comma is misplace, the day return a month, .....