SimpleDateFormat giving different results for the same string in the form

I use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/i18n/SimpleDateFormat.html for formatting my date and time fields.

I got a bug report that a device on English (UK) has a problem where the time turns off the screen, and I was able to reproduce this on device and Simulator.

It's the pattern string that I use: hh:mma

(hour 2 digits, colon, minute 2-digit and one letter for 'a' or 'p')

English or r I get the result you want, for example 12: 12 p '

"On English (UK), I get two letters for one / p marker, for example ' 12:12.

(as if I had used 'hh:mmaa').

What is the desired behavior? My client doesn't like it and wants a look and feel unique, with only one letter for 'a' or 'p', and I'm a little hesitatant to use aubstring...

I usually do so, but our customer asked specifically localized to the date and time formatting.
I have the model in my resource files, as the requested values are not easy to manage with the dateformat standard.

Well, I have submitted comments on the entry of doc API, the doc is fake or the OS has a bug.
I use substring if the string endsWith (am or pm) now...

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • How can I disable 'Remember password'?

    I accidentally pushed "remember this password" on an account, I want to be private. How do I turn it off? I changed the password but the old information continues to show.

  • Error PXE - E61 satellite 1800-712

    During boot the laptop displays briefly messages PXE - E61 Media test failure check cable and PXE - M0F out Intel PXE ROM. It began after a couple of 'experts' tried to get a Combo CDRW/DVD drive replacement to work. It seems to be no real problem, a

  • Smart web printing not, web printing not either...

    I can't print using normal print in IE8 buttons have also downloaded smart web printing but sheet icon does not appear anywhere. Using IE8 and Win 7 64 bit. Hope somone can help pls.

  • I want to put my studio name on all my photos at once

    I want to put my studio name on all my photos at once not alone I try paste does not work and selecting all at once and then paste any suggestion or free program online to do that I post a lot of pictures online and want my info on them... its free j

  • HP Mini 1000: System HP Mini password reset

    Hello I'm trying to troubleshoot a client. They don't know the password to their laptop.  Can you help me? This is serial number: [personal information deleted]