Archive: GetLocalTime Problem


GetLocalTime Problem
Hi all,

yesterday i start with coding some NSIS scripts and found something incorrect.
When i use GetLocalTime on my System year and day is exchanged.

I copy the function code from http://nsis.sourceforge.net/wiki/Get_Local_Time in the file HpDateTime.nsh and start it with:

!include HpDateTime.nsh

var YYYY
var MM
var DD
var WEEKDAY
var HH
var MI
var SS

Section TestSection
Call GetLocalTime
Pop $YYYY ;Variable (for year)
Pop $MM ;Variable (for month)
Pop $DD ;Variable (for day)
Pop $WEEKDAY ;Variable (for day of week name)
Pop $HH ;Variable (for hour)
Pop $MI ;Variable (for minute)
Pop $SS ;Variable (for second)

MessageBox MB_OK "$YYYY $MM $DD $WEEKDAY $HH $MI $SS"
SectionEnd

OutFile "Setup.exe"


Depends this function on system settings or is it only a wrong description in wiki or did i make something wrong?

thanx
LoFi


Just the description. I probably did not documentate my last bug fix change.


Thanx
for fast help + useful function