Skip to content

Commit bdaa286

Browse files
authored
v2.7 - use Powershell for locale-independent TS
fixes #1624
1 parent e2e8c4e commit bdaa286

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

prefsCleaner.bat

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TITLE prefs.js cleaner
33

44
REM ### prefs.js cleaner for Windows
55
REM ## author: @claustromaniac
6-
REM ## version: 2.6
6+
REM ## version: 2.7
77

88
CD /D "%~dp0"
99

@@ -15,7 +15,7 @@ ECHO:
1515
ECHO ########################################
1616
ECHO #### prefs.js cleaner for Windows ####
1717
ECHO #### by claustromaniac ####
18-
ECHO #### v2.6 ####
18+
ECHO #### v2.7 ####
1919
ECHO ########################################
2020
ECHO:
2121
CALL :message "This script should be run from your Firefox profile directory."
@@ -37,8 +37,7 @@ CALL :strlenCheck
3737
CALL :FFcheck
3838

3939
CALL :message "Backing up prefs.js..."
40-
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET ldt=%%j
41-
SET ldt=%ldt:~0,8%_%ldt:~8,6%
40+
FOR /F "delims=" %%# IN ('powershell get-date -format "{yyyyMMdd_HHmmss}"') DO @SET ldt=%%#
4241
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
4342

4443
CALL :message "Cleaning prefs.js..."

0 commit comments

Comments
 (0)