Found this,

http://java2.5341.com/msg/50781.html

So I will implement the work around

-D

On 5/25/05, dan tran <[EMAIL PROTECTED]> wrote:
> First there is on problem with en_AU.
> 
> I may end up to do this
> 
>   SimpleDateFormat localFormat = new SimpleDateFormat();
>   //work around for all en_US compatible locales
> 
>   if (if ( "M/d/yy h:mm a".equals(localFomart.toLocalizedPattern() )
>   {
>       localFormat = new SimpleDateFormat(theExpectedFormat)
>   }
> 
> Ugly eh?
> 
> -Dan
> 
> On 5/25/05, Brett Porter <[EMAIL PROTECTED]> wrote:
> > I think you may just have to hard code the format, but only if the
> > locale is en_US.
> >
> > Can you test en_AU and see if it works? (We reverse the day and month in
> > the date, would be interested to see whether that makes a difference here).
> >
> > - Brett
> >
> > dan tran wrote:
> >
> > >Folks,
> > >
> > >starteam history command ouput has unexpected date format
> > >which the default SimpleDateTimeFormat() not able to handle it
> > >
> > >here is a sample output
> > >
> > >History for: project.xml
> > >Description:
> > >Locked by:
> > >Status: Modified
> > >----------------------------
> > >Revision: 2 View: driver Branch Revision: 1.1
> > >Author: build Date: 5/25/05 4:53:18 PM PDT
> > >
> > >
> > >If If I hardcode a SimpleDateTimeFormat according to this format, it
> > >will work, but affraid it may break on other locale
> > >
> > >Any suggestion?
> > >
> > >
> > >-Dan
> > >
> > >
> > >
> > >
> >
> >
>

Reply via email to