Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
v2.7 - use Powershell for locale-independent TS
fixes #1624
  • Loading branch information
earthlng committed Mar 19, 2023
1 parent e2e8c4e commit bdaa286
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions prefsCleaner.bat
Expand Up @@ -3,7 +3,7 @@ TITLE prefs.js cleaner

REM ### prefs.js cleaner for Windows
REM ## author: @claustromaniac
REM ## version: 2.6
REM ## version: 2.7

CD /D "%~dp0"

Expand All @@ -15,7 +15,7 @@ ECHO:
ECHO ########################################
ECHO #### prefs.js cleaner for Windows ####
ECHO #### by claustromaniac ####
ECHO #### v2.6 ####
ECHO #### v2.7 ####
ECHO ########################################
ECHO:
CALL :message "This script should be run from your Firefox profile directory."
Expand All @@ -37,8 +37,7 @@ CALL :strlenCheck
CALL :FFcheck

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

CALL :message "Cleaning prefs.js..."
Expand Down

0 comments on commit bdaa286

Please sign in to comment.