|
|
|
|
#1 |
|
Junior Member
Join Date: Nov 2012
Posts: 7
|
how can change time zone & dataTime by nsis
how can get & set data-time And also time zone by calling Kernel32.dll?
set local time get time zone set time zone |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You can find all win32 time-related functions here:
http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Nov 2012
Posts: 7
|
thanks i Could handle set time
ex. System::Call '*(&i2 2012, &i2 12, &i2 5, &i2 22, &i2 2, &i2 54, &i2 20) i .r0' System::Call 'kernel32::SetLocalTime(i r0) i.r0' but for changing time zone can u help me |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
How to set (change) only date ? Time does not change !
|
|
|
|
|
|
#5 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Which code are you using? If it is the code from this thread, what is the return value of the SetLocalTime call ($0)?
Does the time not change or do you not want to change the time? IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
|
|
|
|
|
|
#7 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
You have to get the current time first:
Quote:
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
Anders, Does not work ...
|
|
|
|
|
|
#9 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
I changed the code, you can try again (I have not tested it myself...)
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Nov 2012
Posts: 166
|
Anders
ОK. Thank you ! |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|