Real Software Forums
http://forums.realsoftware.com/

Linux returns US date format on all systems
http://forums.realsoftware.com/viewtopic.php?f=8&t=46342
Page 1 of 1

Author:  grechcj [ Mon Dec 24, 2012 4:03 pm ]
Post subject:  Linux returns US date format on all systems

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?

Author:  kermit [ Mon Dec 24, 2012 6:17 pm ]
Post subject:  Re: Linux returns US date format on all systems

How do you format the date before you display it?
What does your code look like?

Author:  grechcj [ Mon Dec 24, 2012 9:02 pm ]
Post subject:  Re: Linux returns US date format on all systems

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

Author:  georgelbs [ Sun Dec 30, 2012 10:44 pm ]
Post subject:  Re: Linux returns US date format on all systems

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

Author:  MonkeybreadSoftware [ Mon Dec 31, 2012 5:48 am ]
Post subject:  Re: Linux returns US date format on all systems

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

Author:  grechcj [ Mon Dec 31, 2012 5:27 pm ]
Post subject:  Re: Linux returns US date format on all systems

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.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/