[Solved] Can wine change short date format?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

[Solved] Can wine change short date format?

Post by Terryphi »

Since I updated to Ubuntu 8.04 yesterday I have lost the UK short date format DDMMYYYY and am having a real problem setting it system wide. (I now have the US MMDDYYYY format.)
Ubuntu 8.04 appears to ignore the LANG="en_GB.UTF-8" line in etc/environment which fixed the issue in 7.10.
The apps I run on wine all use the short date format so here is my question. Is it possible to make wine override the system settings and set its own short date format?
Last edited by Terryphi on Tue Apr 29, 2008 2:08 am, edited 3 times in total.
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

Here's an answer to my own question. I hope it helps others.

I've found a solution that works for me in Quicken and Agent. Some apps take the short date format from ~/.wine/drive_c/windows/win.ini and some take it from ~/.wine/user.reg so it is necessary to amend both.

In user.reg look for sShortDate= under [Control Panel \\ International] and change to sShortDate="dd/MM/yyyy" .

In win.ini look for sShortDate= under [intl] and change to sShortDate="dd/MM/yyyy" .
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

I spoke too soon. Agent has held the settings but Quicken has now reverted to US short date format. Weird!
Dan Kegel

[SOLVED] Can wine change short date format?

Post by Dan Kegel »

On Fri, Apr 25, 2008 at 11:34 PM, Terryphi <[email protected]> wrote:
I spoke too soon. Agent has held the settings but Quicken has now reverted to US short date format. Weird!
Please file a bug at http://bugs.winehq.org
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

The setting in user.reg somehow got overwritten. I have reset it to the required format and Quicken now shows UK short date format. (Agent newsreader was already working OK.)

I'll keep an eye on it during the next few days and see how it goes.
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

Confirmed working OK. Problem solved. :)
Vito
Newbie
Newbie
Posts: 1
Joined: Tue Apr 29, 2008 5:37 am

Post by Vito »

Hi Terryphi,

I'm really really new to this sort of stuff so please excuse my ignorance if I'm doing things wrong.

I'm using codeweavers trial for mac which I think is current as I only downloaded it a week ago for the purpose of running Quicken.

I've been looking for a way to change the date from US style to our ddmmyyyy format as what you were investigating. I followed your steps by finding and changing the parts of user.reg and win.ini and ran Quicken without any change in behavior.

I have rechecked the files and they still have the dd/MM/yyyy

Any suggestions? Is wine easy enough to install by itself if its codeweavers implementation causing problems?

Thanks.
Dan Kegel

[Solved] Can wine change short date format?

Post by Dan Kegel »

On Tue, Apr 29, 2008 at 3:49 AM, Vito <[email protected]> wrote:
I'm using codeweavers trial for mac [with] Quicken.
Best ask for help at codeweavers.com then.
I've been looking for a way to change the date from US style to our ddmmyyyy format
I followed your steps by finding and changing the parts of user.reg and win.ini
and ran Quicken without any change in behavior.
Which ones? Perhaps you changed Wine's but not Crossover's.
- Dan
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

Vito,

All I can suggest is that you keep trying. I did a few tests after reading your post and found that Agent (but not Quicken) had reverted to US format. When I checked win.ini I found it had somehow been overwritten with the US format. Don't ask me how! I amended the line in win.ini and everything is fine again.

What we need is a developer to explain why the line gets overwritten.

BTW I am using wine 0.9.59 .
Dan Kegel

[Solved] Can wine change short date format?

Post by Dan Kegel »

On Tue, Apr 29, 2008 at 6:09 AM, Terryphi <[email protected]> wrote:
All I can suggest is that you keep trying. I did a few tests after reading your post and found that Agent (but not Quicken) had reverted to US format. When I checked win.ini I found it had somehow been overwritten with the US format. Don't ask me how! I amended the line in win.ini and everything is fine again.

What we need is a developer to explain why the line gets overwritten.
The way to do that is to file a bug at http://bugs.winehq.org
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: [Solved] Can wine change short date format?

Post by vitamin »

Dan Kegel wrote:On Tue, Apr 29, 2008 at 6:09 AM, Terryphi <[email protected]> wrote:
All I can suggest is that you keep trying. I did a few tests after reading your post and found that Agent (but not Quicken) had reverted to US format. When I checked win.ini I found it had somehow been overwritten with the US format. Don't ask me how! I amended the line in win.ini and everything is fine again.

What we need is a developer to explain why the line gets overwritten.
The way to do that is to file a bug at http://bugs.winehq.org
Most likely running wineprefix create since it doesn't check the content of the ini files before overwriting them.
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

Thanks, vitamin. Is there any workaround or should I report a bug?
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

[Solved] Can wine change short date format?

Post by austin987 »

On Tue, Apr 29, 2008 at 10:30 AM, Terryphi <[email protected]> wrote:
Thanks, vitamin. Is there any workaround or should I report a bug?





Please report a bug for this.
bluegroper
Level 1
Level 1
Posts: 5
Joined: Tue Oct 21, 2008 5:37 am

Can wine change short date format?

Post by bluegroper »

I've googled and STF'd, but alas cannot find any instructions regarding changing the short date format to dd/mm/yy
Can edit the registry, and change the win.ini file, but my windoze app still displays mm/dd/yy.
Grateful for any pointers to the instructions for how to fix.
TIA's

Edit. Using wine 1.0.1
Terryphi
Level 2
Level 2
Posts: 10
Joined: Fri Apr 25, 2008 1:49 am

Post by Terryphi »

bluegroper: What is the Windows app you are having the problem with? Is your Linux distro set to the right locale for the UK?

Following my instructions above I have correct UK format for Quicken, Agent Newsreader and Digiguide. These are the only Windows apps I use and have tested.
bluegroper
Level 1
Level 1
Posts: 5
Joined: Tue Oct 21, 2008 5:37 am

Post by bluegroper »

A custom app written in Delphi.
I'll check with the developer about what registry entry is being used to determine short date format.
Locked