Incorrect date format

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Petr_S
New Member
New Member
Posts: 1
Joined: 2026-01-04, 10:37 UTC

Incorrect date format

Post by *Petr_S »

Change of HKEY_CURRENT_USER\Control Panel\International\sShortDate form "dd.MM.yyyy" to "ddd dd.MM.yyyy" causes change of the displayed date format from "04.01.2026" to "04 01 2026" - dots are missing.
User avatar
petermad
Power Member
Power Member
Posts: 16548
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Incorrect date format

Post by *petermad »

Confirmed.

As a workaround, you can use:

Code: Select all

ddd. dd.MM.yyyy
instead
License #524 1994
Danish TC Translator
TC 11.56 32+64bit on Windows XP 32bit & Windows 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1404a
TC 3.61b on Android 6, 13, 15 & 16
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MaxX
Power Member
Power Member
Posts: 1250
Joined: 2012-03-23, 18:15 UTC
Location: UA

Re: Incorrect date format

Post by *MaxX »

Ah... I remember the same on some WinPE bootables. Never thought it is TC's bug. Isn't it?
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 51592
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Incorrect date format

Post by *ghisler(Author) »

Total Commander does not read the date format directly from the registry. Instead, it calls GetLocaleInfo with parameters LOCALE_USER_DEFAULT, LOCALE_SDATE.

The problem is that Windows sees the space in your sShortDate string and returns that as the date separator.

Solution: Set the date separator manually for Total Commander in menu Configuration - Options - Tabstops/Data formats.
Author of Total Commander
https://www.ghisler.com
Post Reply