Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun May 28, 2017 1:49 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Linux returns US date format on all systems
PostPosted: Mon Dec 24, 2012 4:03 pm 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
I'm still getting complaints from UK and Australian customers that my RS app shows the date in shortdate format mm/dd/yyyy instead of dd/mm/yyyy.
They say all other programs on their Linux system show the date correctly so it appears their system date is correct.
What could be causing this?


Top
 Profile  
 
 Post subject: Re: Linux returns US date format on all systems
PostPosted: Mon Dec 24, 2012 6:17 pm 
Offline

Joined: Mon May 30, 2011 12:56 am
Posts: 702
How do you format the date before you display it?
What does your code look like?


Top
 Profile  
 
 Post subject: Re: Linux returns US date format on all systems
PostPosted: Mon Dec 24, 2012 9:02 pm 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
Quote:
How do you format the date before you display it?
What does your code look like?


Dim d as new date
msgbox d.shortdate


Top
 Profile  
 
 Post subject: Re: Linux returns US date format on all systems
PostPosted: Sun Dec 30, 2012 10:44 pm 
Offline

Joined: Mon Oct 06, 2008 12:35 pm
Posts: 37
on ubuntu open terminal and type:
sudo gedit/etc/environment

copy an paste

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
LC_CTYPE=en_AU.utf8
LC_NUMERIC=en_AU.utf8
LC_TIME=en_AU.utf8
LC_COLLATE=en_AU.utf8
LC_MONETARY=en_AU.utf8
LC_MESSAGES=en_AU.utf8
LC_PAPER=en_AU.utf8
LC_NAME=en_AU.utf8
LC_ADDRESS=en_AU.utf8
LC_TELEPHONE=en_AU.utf8
LC_MEASUREMENT=en_AU.utf8
LC_IDENTIFICATION=en_AU.utf8

donĀ“t forget to save before exit gedit, then reboot

hope this help


Top
 Profile  
 
 Post subject: Re: Linux returns US date format on all systems
PostPosted: Mon Dec 31, 2012 5:48 am 
Offline
User avatar

Joined: Wed May 10, 2006 2:42 pm
Posts: 2985
Location: Germany
For numbers I wrote a plugin function FormatMBS, so we can get the number in the format we specify.
So for an english user, we let it format in english and for a German user in German.

Greetings
Christian

_________________
See you in Orlando, Florida for Real World 2013
More details and registration here:
http://www.realsoftware.com/community/realworld.php


Top
 Profile  
 
 Post subject: Re: Linux returns US date format on all systems
PostPosted: Mon Dec 31, 2012 5:27 pm 
Offline

Joined: Sun Feb 14, 2010 11:19 pm
Posts: 213
Location: Australia
Quote:
on ubuntu open terminal and type:
sudo gedit/etc/environment


Thanks this worked.
I needed to enter it as: sudo gedit'/etc/environment' and only needed to add the line LC_TIME=en_AU.utf8 to change the date format.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group