Page 1 of 1

the short system date is not the short system date

Posted: Wed May 19, 2010 9:03 am
by hliljegren
Living in Sweden we use the ISO standard for short dates (YYYY-MM-DD) so todays date is 2010-05-19 but if I enter:

Code: Select all

put the short system date
I get 2010-19-05. Is this a known bug or should I know something I don't? To my understanding the system date should give me the same short date as my settings in the system's date preference panel.

BTW. Running Mac OS X 10.6.3

Re: the short system date is not the short system date

Posted: Wed May 19, 2010 2:58 pm
by shadowslash
Hi hliljegren,

I'm not sure about this matter but if it wouldn't be of much trouble, you could create a work around for this problem by using this simple function.

Code: Select all

function shortSystemDate
   local tDate
   put the short system date into tDate
   
   // Set this to whatever the date seperator is.
   set the itemDel to "-" //<-- I made this a dash (-) as based on your post.
   
   put item 2 of tDate into item 4 of tDate
   delete item 2 of tDate
   return tDate
end shortSystemDate

Re: the short system date is not the short system date

Posted: Wed May 19, 2010 5:30 pm
by bn
Hi Hliljegren,
the short system date works for me (germany). Did you check in your system preferences -> country settings -> formats -> options? There you can see/configure how the system displays date and time and some other stuff.
regards
Bernd

Re: the short system date is not the short system date

Posted: Thu May 20, 2010 2:12 pm
by hliljegren
Yes, I have checked my settings int the system preferences, and thanks for the work-around, but that's not the problem. The problem is that I want to give the users the date in a format their used to. If I use a work-around I must develop my own "system" date for all different date formats in in the world. Or maybe go with the ISO-standard (as we by happenstance use here in Sweden ;) )

In the system settings I have a specialized long format as I want to see the week number in the date, so maybe that is causing my problem. Will check that soon...

I also believe that it worked for me before, so maybe it's a system update that causes the problem?

Re: the short system date is not the short system date

Posted: Thu May 20, 2010 2:57 pm
by hliljegren
Ok, changed the system date format to pure "Swedish" and now it works OK. Changed it back and it doesn't. So I guess there is a bug after all, but it just went a bit smaller...

So, now the problem should be:

The short system date is not the short system date if you don't use a pure language setting.

But, thanx for the help!

If I add anything other than pure text the system date stops working. The strange thing in all this is that I only changed the full date format. Never touched the short date at all! And the long system date almost works; I get "torsdag den20 maj 2010, v" (Space missing between "den" and 20 and no week number)

Maybe someone running another version of the operating system (I'm running Mac OS X 10.6.3), or running Windows / Linux can try and see if they get the same result or not. Maybe we can isolate the problem.

Re: the short system date is not the short system date

Posted: Thu May 20, 2010 7:43 pm
by bn
Hi hliljegren,
I tested on MacOS X 10.5.8 german. I changed a couple of the settings for date formats in system settings and Rev 4.0 showed them as I had entered them when I asked for the short system date.
So no problem here.
regards
Bernd

Re: the short system date is not the short system date

Posted: Mon May 24, 2010 7:05 am
by hliljegren
OK! Thanks Bernd. Did you restart Revolution after you changed the system settings? If so it might be either just my computer or it might be related to 10.6 or even just 10.6.3. But thanks anyway...

Re: the short system date is not the short system date

Posted: Mon May 24, 2010 11:38 am
by bn
Hi hliljegren,
I had to restart Revolution in order for the changed system date settings to take effect.
regards
Bernd