Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Commit

Permalink
Adding scripts to set regional time format - need reboot/GPO to take …
Browse files Browse the repository at this point in the history
…effect
  • Loading branch information
Mischa Taylor committed Jan 12, 2015
1 parent 2695f6b commit 5cec7bc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions floppy/time12h.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@setlocal EnableDelayedExpansion EnableExtensions
@for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i"
@if defined PACKER_DEBUG (@echo on) else (@echo off)

title Setting time format. Please wait...

echo ==^> Setting time format to AM/PM
reg add "HKCU\Control Panel\International" /f /v sShortTime /t REG_SZ /d "h:mm tt"
reg add "HKCU\Control Panel\International" /f /v sTimeFormat /t REG_SZ /d "h:mm:ss tt"

:exit0
ver>nul
goto :exit

:exit1
verify other 2>nul

:exit
18 changes: 18 additions & 0 deletions floppy/time24h.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@setlocal EnableDelayedExpansion EnableExtensions
@for %%i in (%~dp0\_packer_config*.cmd) do @call "%%~i"
@if defined PACKER_DEBUG (@echo on) else (@echo off)

title Setting time format. Please wait...

echo ==^> Setting time format to AM/PM
reg add "HKCU\Control Panel\International" /f /v sShortTime /t REG_SZ /d "HH:mm"
reg add "HKCU\Control Panel\International" /f /v sTimeFormat /t REG_SZ /d "HH:mm:ss"

:exit0
ver>nul
goto :exit

:exit1
verify other 2>nul

:exit

0 comments on commit 5cec7bc

Please sign in to comment.