44
13
My Windows 10's time format is 24 hour clock, this includes the taskbar but the lock screen is still 12 hour clock format. How do I change the format of my time in lockscreen?
44
13
My Windows 10's time format is 24 hour clock, this includes the taskbar but the lock screen is still 12 hour clock format. How do I change the format of my time in lockscreen?
21
I've figured out a better answer than hacking the registry... Thanks to zppinto for putting me on the right track. The problem remained that the time format was still US when no user is logged in.
First activate the hidden administrator user account:
net user
to see all the user accountsnet user administrator /active:yes
to activate the hidden administrator user accountnet user administrator *
to give the administrator user a password - always a good ideaPress Ctrl+Alt+Del to Switch users (or logout and log into Administrator account.
In the administrator account:
Open the control panel and click on Change date, time or number format
Change the Format:
on the Formats tab and click on Additional Settings...
button (Note: you may want to do language thing here as well, in order to copy it over to the Welcome Screen, etc)
Click on Time tab and make sure the correct time format is being used (also the date format, etc)
Back on the Region dialogue box click on the Administrative tab and click on Copy settings...
button
Tick the Welcome screen and system accounts
and New user accounts
check box to copy the settings to all the Welcome Screen
Note: my settings took a long time to copy over; thus be a little patient - as the doctor said to the dwarf
5Thank you very much for the detailed explanation. I am very annoyed by the 12-hour format on my lock screen. Finally it's fixed! – wujj123456 – 2015-08-29T06:39:18.803
You don't have to activate the built-in Administrator account, any administrator account will do. I just did that (starting from "In the administrator account") on my PC -- from my own personal, administrator account -- and it worked. (I had the exact same problem) – Smiley Barry – 2015-09-06T19:02:04.430
Actually, I had to activate the built-in Admin. I didn't have the button to copy the settings to the welcome screen and I am an Admin user :s Believe me; I've tried a lot of things before getting to this point. The problem is the Date/Time format before you log in is US (The only country to use that format? but we all have to?) – TungstenX – 2015-09-07T06:36:29.030
67
Same here; I was able to get the lock screen to show HH:MM via my personal account with admin privileges, no hidden admin account needed. This is how:
Press Win+R, type intl.cpl
and press Enter (this will open "Region" settings)
Set your "Short Time" & "Long Time" formats in the window that comes up, then click "Apply."
Select the "Administrative" tab at the top, then click the "Copy settings..." button.
In the subsequent window, check the box for "Welcome screen and system accounts."
Click the "OK" button and lock the PC with Win+L to test it.
Even if you are totally logged off? – TungstenX – 2015-10-13T18:57:03.617
5>
Just to confirm this worked. Even after rebooting the lock screen had the 24 hour format. Thanks. – Dean Kuga – 2016-04-23T21:45:43.703
I believe that between Copy settings... and OK you also have to check the box next to Welcome screen and system accounts--otherwise you're not changing anything, no? – Mathieu K. – 2017-04-21T02:47:51.920
Unfortunately this didn't work for me :/ – maracuja-juice – 2018-02-12T12:50:43.597
For me this works for time, but not for date... – Betlista – 2018-05-02T13:04:02.283
That may be the weirdest Windows behaviour I've ever seen. The fix worked for me. – JJP – 2019-01-15T15:03:56.197
Works like a charm. :) Thanks, – CuriousCase – 2020-01-22T10:13:35.647
4
Have you tried to:
If none of that works, I think only solution will be editing the windows registry. There are some tutorials for Windows 8. I think it will be compatible with Windows 10 too.
In all settings, including registry the short time is HH:mm, long time is HH:mm:ss – TungstenX – 2015-08-25T11:06:02.430
1Hum... And the registry key "Clock" is set to "24HourClock"? – zppinto – 2015-08-25T11:18:23.017
Yes it is. I've changed the owner of the Control panel (http://www.eightforums.com/tutorials/2808-take-ownership-file-folder-drive-registry-key-windows-8-a.html) in order to change permissions of LocaleInfo (still couldn't change LocaleInfo's permissions) but now it shows 24 hour clock :s weird - seems that we are supposed to be too stupid to change the display clock
– TungstenX – 2015-08-25T11:40:37.7871
PowerShell method:
New-PSDrive -Name HKU -PSProvider Registry -Root HKEY_USERS | Out-Null
$internationalPaths = @("HKU:\.DEFAULT\Control Panel\International","HKCU:\Control Panel\International")
$hourFormat = "h"
IF($TimeFormat -eq '24h')
{
$hourFormat = "H"
}
FOREACH ($path in $internationalPaths)
{
IF((Get-ItemProperty $path).'sTimeFormat')
{
#Windows 10 default time format h:mm:ss tt
Set-ItemProperty -Path $path -Name "sTimeFormat" -Value "$hourFormat`:mm:ss tt"
}
IF((Get-ItemProperty $path).'sShortTime')
{
#Windows 10 default time format h:mm tt
Set-ItemProperty -Path $path -Name "sShortTime" -Value "$hourFormat`:mm tt"
}
}
More details How to change Windows 10 Lock screen time format by PowerShell
1
Thanks to the PowerShell code provided by frank. Heres what I ended up with, a bit shorter and cleaner IMO.
[string[]]$('Registry::HKEY_USERS\.DEFAULT\Control Panel\International','Registry::HKEY_CURRENT_USER\Control Panel\International').ForEach{
# Country
$null = Set-ItemProperty -Path $_ -Name 'iCountry' -Value '47' -Type 'String' -Force
$null = Set-ItemProperty -Path $_ -Name 'sCountry' -Value 'Norway' -Type 'String' -Force
# Date
$null = Set-ItemProperty -Path $_ -Name 'sLongDate' -Value 'dddd dd. MMMM yyyy' -Type 'String' -Force
$null = Set-ItemProperty -Path $_ -Name 'sShortDate' -Value 'dd.MM.yyyy' -Type 'String' -Force
# Decimal
$null = Set-ItemProperty -Path $_ -Name 'sDecimal' -Value '.' -Type 'String' -Force
$null = Set-ItemProperty -Path $_ -Name 'sMonDecimalSep' -Value ',' -Type 'String' -Force
# Time
$null = Set-ItemProperty -Path $_ -Name 'sTimeFormat' -Value 'HH:mm:ss' -Type 'String' -Force
$null = Set-ItemProperty -Path $_ -Name 'sShortTime' -Value 'HH:mm' -Type 'String' -Force
$null = Set-ItemProperty -Path $_ -Name 'sYearMonth' -Value 'MMMM yyyy' -Type 'String' -Force
}
1
A simpler solution which worked for me wanting to display it in 24hr format in the UK.
Inherently there is something behind the scenes with Windows which changes the date and time format at a system level, despite still displaying it in the correct UK format at the front end. I'm led to believe this is for Windows updates as it connects to US servers which needs the US format. I work with Time and Attendance software and this has been an issue for us since Vista and still there in Windows 10 (though less aggressively). I've just done this on my new PC and it worked, though time will tell if Windows Updates changes it back.
If you would like to change the lock screen date format as well, see this thread: change date format on Win 8.1 lock screen: http://superuser.com/questions/823244/change-date-format-on-win-8-1-lock-screen/1009995#1009995
– XP1 – 2015-12-07T03:31:07.700