Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
v4.19 - use Powershell for locale-independent TS
  • Loading branch information
earthlng committed Mar 10, 2023
1 parent 7388485 commit ca022d8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions updater.bat
Expand Up @@ -3,10 +3,10 @@ TITLE arkenfox user.js updater

REM ## arkenfox user.js updater for Windows
REM ## author: @claustromaniac
REM ## version: 4.18
REM ## version: 4.19
REM ## instructions: https://github.com/arkenfox/user.js/wiki/5.1-Updater-[Options]#-windows

SET v=4.18
SET v=4.19

VERIFY ON
CD /D "%~dp0"
Expand Down Expand Up @@ -177,8 +177,7 @@ IF EXIST user.js.new (
IF DEFINED _singlebackup (
MOVE /Y user.js user.js.bak >nul
) ELSE (
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=%%#
MOVE /Y user.js "user-backup-!ldt!.js" >nul
)
REN user.js.new user.js
Expand Down

0 comments on commit ca022d8

Please sign in to comment.