Prev Previous Post   Next Post Next
Old 5th May 2010, 06:51   #1
Junior Member
Join Date: May 2010
Posts: 8
Bug in ${GetTime} ?


I am new in using NSIS. Thanks for all the possibilities of that. I searched long and found no better one! Many thanks.

Maybe I did something wrong!? Or is it a bug?

When I use the ${GetTime} part of the samples:


${GetTime} "" "L" $0 $1 $2 $3 $4 $5 $6
MessageBox MB_OK 'Date=$0/$1/$2 ($3)$\nTime=$4:$5:$6'

the year, month, monthday, minutes and seconds are correct, but not the hours. I do not mean the content. I mean the formatting. If the content is only one digit (0..9) they are played a leading zero back. That is ok and fine. But not for the hours!


Date=05/05/2010 (Wednesday)

I wanted to use that to automatically build file names of the installation timestamp, but in that way that is not usable. Did I something wrong?

I use MakeNSISW 2.3.

MyWay is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump