Date format doesn't match with system format

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Ammammata
Junior Member
Junior Member
Posts: 24
Joined: 2003-03-04, 18:16 UTC
Contact:

Date format doesn't match with system format

Post by *Ammammata »

Consider atipycal italian installation, the standard date format is dd/MM/yyyy.
Well, windows explorer shows the date in the proper format, total commander swaps day and month (american style), but thunderbird is ok... but microsoft office 2003 acts like total commander :(
Question is: what do TC and O2k3 have in common that make things wrong? and why windows explorer and thunderbird aren't affected?
any help is appreciated :)
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Consider atipycal
Do you mean "a typical" or "an atypical" - they mean two opposite things.

Anyway, it works OK here (Win XP and Win 7 x 64) if I set the short date format to dd/MM/yyyy - but I might have to restart TC to see the effect of the changed date format - depending on where I change the system short date format (it can be done at least to places).

What OS are you using?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Ammammata
Junior Member
Junior Member
Posts: 24
Joined: 2003-03-04, 18:16 UTC
Contact:

Post by *Ammammata »

petermad wrote:
Consider atipycal
Do you mean "a typical" or "an atypical" - they mean two opposite things.
What OS are you using?
typical, sorry, the keyboard ate a space
o.s. is windows xp, with sp3 and all the stuff downloadable from microsoft to make it up-to-date (except windows search, of course)

addendum: I found this "error" also on a different computer, now formatted, but I didn't care at that time
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm, that's mysterious then.

I have never seen TC not using the right Danish short date format on all the many computers I have used TC on - and Danish short date formate (DD-MM-åååå) is similar to Italian in the way that the day comes before the month.

One thing though: in my Windows XP the Italian default short date is noted as DD/MM/yyyy (on Windows 7 it is dd/MM/yyyy) - In your first posting you write: dd/MM/yyyy - is that how your Windows shows it to you - with lower case dd ?
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Ammammata
Junior Member
Junior Member
Posts: 24
Joined: 2003-03-04, 18:16 UTC
Contact:

Post by *Ammammata »

petermad wrote:One thing though: in my Windows XP the Italian default short date is noted as DD/MM/yyyy (on Windows 7 it is dd/MM/yyyy) - In your first posting you write: dd/MM/yyyy - is that how your Windows shows it to you - with lower case dd ?
well, can't say right now, the computer is not here

anyway, I typed the date format string without actually reading it from the control panel: I'm sure indeed that the standard format hasn't been changed during windows setup, two days ago

and, I repeat, is not only TC but also MS Office 2003, it's quite sure something I installed but I swear, I did just windows updates and a bunch of additional tools (foxit reader, peazip, bullzip pdf, flash, java, notepad++, shockwave, ms security essentials, cobian backup, vlc, rainlendar, ultra vnc, thunderbird)
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Total Commander uses GetLocaleInfo(LOCALE_USER_DEFAULT,LOCALE_IDATE,... to get the date format. This returns 0 for month,day,year, 1 for day,month,year, and 2 for year,month day. For the date separator, TC calls
GetLocaleInfo(LOCALE_USER_DEFAULT,LOCALE_SDATE,...

See for example
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318101%28v=vs.85%29.aspx

I guess that MS Office 2003 does the same. I assume that the locale info is damaged on your computer, returning the wrong values.

Solution:
1. Change the language settings in control panel to use a different date format, e.g. year-month-day.
2. Click on "Apply"
3. Change the language settings in control panel to the settings you want (day/month/year)
4. Click again on "Apply"
5. Restart Total Commander
Author of Total Commander
https://www.ghisler.com
Ammammata
Junior Member
Junior Member
Posts: 24
Joined: 2003-03-04, 18:16 UTC
Contact:

SOLVED

Post by *Ammammata »

ghisler(Author) wrote:I guess that MS Office 2003 does the same. I assume that the locale info is damaged on your computer, returning the wrong values. Solution follows...
Just to confirm that the problem has been solved.
Thank you.
The customer is testing it and will register soon :D
/-\ /\/\ /\/\ /-\ /\/\ /\/\ /-\ T /-\
Post Reply