Weird calendar behaviour

Does anyone recognize this:

We use the default application.showCalendar() function to popup a calendar so it’s easy for a user to pick a date.
One of our customers asked us why this calendar shows the 15th of april as 15-43-2009 (see also the screenshot)

To be honest I don’t have a clue, as application.showCalendar() is not datadriven, so we can’t pass wrong data as an argument…
Can it be some kind of systemsetting (Mac)

Some more background:

  • Application runs on Servoy 4.1.1
  • Customer uses a Mac, connected via SmartClient

Thanks for your input!

[attachment=0]weird_cal.png[/attachment]

Does it always show this date as 15-43-2009 or does it vary ?

Regards,

Hans

As far as we know this is always the case.
Unfortunately (or not :) ) we can’t reproduce it ourselves…

what is exactly the format thats on that field?

Hi Johan,

it’s just a ‘regular’ dd-MM-yyyy format.

The strange thing it only happens (or at least has been filed to us) at one customer, one single Mac.
So we cross checked usersettings/computer and localsettings of the computer.

We can’t reproduce it either on PC or Mac ourselves…

Also created a case for this 206441

Thankx for looking into this!

are the java version the same on those macs you test?

jcompagner:
are the java version the same on those macs you test?

yes they are… that’s about the first thing I checked, but unfortunately there was no difference…

Well I have a simple explanation for this: if you add “locale.dateformat=dd-43-yyyy” setting to your servoy.properties file on the server all clients will do that.
But if only one client shows this, then it might be that only that client has this setting in his servoy_client.properties file (from user’s home dir/.servoy).

Can you check this before we start looking for a bug? If this is not the case, does adding “locale.dateformat=dd-MM-yyyy” in that client’s servoy_client.properties file solve the problem?