LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
hliljegren
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
-
Contact:
Post
by hliljegren » Wed May 19, 2010 9:03 am
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:
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
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
-
shadowslash
- Posts: 344
- Joined: Tue Feb 24, 2009 6:14 pm
-
Contact:
Post
by shadowslash » Wed May 19, 2010 2:58 pm
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
Parañaque, Philippines

-
bn
- VIP Livecode Opensource Backer

- Posts: 4172
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Wed May 19, 2010 5:30 pm
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
-
hliljegren
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
-
Contact:
Post
by hliljegren » Thu May 20, 2010 2:12 pm
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?
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
-
hliljegren
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
-
Contact:
Post
by hliljegren » Thu May 20, 2010 2:57 pm
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.
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
-
bn
- VIP Livecode Opensource Backer

- Posts: 4172
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Thu May 20, 2010 7:43 pm
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
-
hliljegren
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
-
Contact:
Post
by hliljegren » Mon May 24, 2010 7:05 am
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...
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
-
bn
- VIP Livecode Opensource Backer

- Posts: 4172
- Joined: Sun Jan 07, 2007 9:12 pm
Post
by bn » Mon May 24, 2010 11:38 am
Hi hliljegren,
I had to restart Revolution in order for the changed system date settings to take effect.
regards
Bernd