# Weird calendar behaviour

**URL:** <https://forum.servoy.com/t/weird-calendar-behaviour/10532>\
**Category:** Classic Servoy\
**Created:** [April 15, 2009, 7:12am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532 "2009-04-15T07:12:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [April 15, 2009, 7:12am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/1 "2009-04-15T07:12:03Z")

</div>

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]

 ![weird_cal.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/9/982d6aab04f287385327a3c4b5816b052c38e08b.png)

---

<div class="post-metadata">

**Author:** ![Hans\_Nieuwenhuis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@Hans\_Nieuwenhuis](https://forum.servoy.com/u/Hans_Nieuwenhuis)\
**Post date:** [April 15, 2009, 10:06am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/2 "2009-04-15T10:06:02Z")

</div>

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

Regards,

Hans

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [April 15, 2009, 10:28am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/3 "2009-04-15T10:28:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 28, 2009, 2:23pm UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/4 "2009-04-28T14:23:26Z")

</div>

what is exactly the format thats on that field?

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [April 29, 2009, 7:17am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/5 "2009-04-29T07:17:52Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [April 29, 2009, 8:34am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/6 "2009-04-29T08:34:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [April 29, 2009, 9:35am UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/7 "2009-04-29T09:35:38Z")

</div>

> 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…

---

<div class="post-metadata">

**Author:** ![Andrei\_Costescu](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@Andrei\_Costescu](https://forum.servoy.com/u/Andrei_Costescu)\
**Post date:** [May 7, 2009, 3:14pm UTC](https://forum.servoy.com/t/weird-calendar-behaviour/10532/8 "2009-05-07T15:14:26Z")

</div>

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?
