N
nwkien
Dear All
I have problem on getting datetime,now() value which already plus 18
hours from pacific time.
The step had done is
1. put the time.reg files (GMT+08:00 Kuala Lumpur, Singapore) into
Application folder
2. Perform cold boot.
3. In the datetime option (Control panel), it already change to GMT
+08:00
4. When using application with datetime.now() function, it return time
= system time + 16 hours.
eg: system time: 0100, return time by datetime.now() = 1700
5. if i go to datetime option (Control Panel), click ok although it
already in GMT+08:00. datetime.now() return the system time.eg: 0100
Question:
1. How can i get the correct datetime without click the ok button on
datetime option?
2. How can i refresh the timezone to get the correct time (in coding)?
Thanks for help.
Regard
Alvin
Here is the registry file code:
[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex:\
20,fe,ff,ff,4d,00,61,00,6c,00,61,00,79,00,20,00,50,00,65,00,6e,
00,69,00,6e,\
00,73,00,75,00,6c,00,61,00,20,00,53,00,74,00,61,00,6e,
00,64,00,61,00,72,00,\
64,00,20,00,54,00,69,00,6d,
00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,4d,00,61,00,6c,
00,61,00,79,00,20,00,\
50,00,65,00,6e,00,69,00,6e,00,73,00,75,00,6c,
00,61,00,20,00,44,00,61,00,79,\
00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69,00,6d,
00,65,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,c4,ff,ff,ff
I have problem on getting datetime,now() value which already plus 18
hours from pacific time.
The step had done is
1. put the time.reg files (GMT+08:00 Kuala Lumpur, Singapore) into
Application folder
2. Perform cold boot.
3. In the datetime option (Control panel), it already change to GMT
+08:00
4. When using application with datetime.now() function, it return time
= system time + 16 hours.
eg: system time: 0100, return time by datetime.now() = 1700
5. if i go to datetime option (Control Panel), click ok although it
already in GMT+08:00. datetime.now() return the system time.eg: 0100
Question:
1. How can i get the correct datetime without click the ok button on
datetime option?
2. How can i refresh the timezone to get the correct time (in coding)?
Thanks for help.
Regard
Alvin
Here is the registry file code:
[HKEY_LOCAL_MACHINE\Time]
"TimeZoneInformation"=hex:\
20,fe,ff,ff,4d,00,61,00,6c,00,61,00,79,00,20,00,50,00,65,00,6e,
00,69,00,6e,\
00,73,00,75,00,6c,00,61,00,20,00,53,00,74,00,61,00,6e,
00,64,00,61,00,72,00,\
64,00,20,00,54,00,69,00,6d,
00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,4d,00,61,00,6c,
00,61,00,79,00,20,00,\
50,00,65,00,6e,00,69,00,6e,00,73,00,75,00,6c,
00,61,00,20,00,44,00,61,00,79,\
00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69,00,6d,
00,65,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,c4,ff,ff,ff