is it here in attributes_price_factor_onetime_offset. if so how it could be done. my zone is gmt+08:00.
is it here in attributes_price_factor_onetime_offset. if so how it could be done. my zone is gmt+08:00.
IIRC, putenv/set locale will correct your display time in admin, but it won't affect the date/time entered into the database for orders or order confirmation/update emails - that will still be based on server time since the code uses the MySQL 'now()' function.
You might take a look at the Time Zone Offset mod for a better solution:
http://www.zen-cart.com/index.php?ma...roducts_id=145
[Edited: the 'add URL' button doesn't seem to be working on replies to posts today :-) ]
thank u pixxi for quick reply. i setup the zone as yr guidance. anyway is it possible to change/add the admin time in admin/includes/header.php line 218, for example, time(+0800) or whatever?
If you've installed the Time Zone Offset mod, then you can set the time offset for your country compared to server time (GMT+8) in the shop admin:
admin->configuration->My Store->Time Zone Offset
@ LostSheep
From you post
And from your signatureOriginally Posted by LostSheep
Are you also want to change the time of your local server in your windows xp?zc1.3.5; localhost; windows xp; apache; mysql5.0.24a; php5.1.6
If it is the case, find or add the following section in you php.ini (only valid for PHP > v5.1) and add the support for your timezone.
Note: in the aboveCode:[Date] ; Defines the default timezone used by the date functions date.timezone = Etc/GMT+8
Etc/GMT+8
is only suggestion and you may find a better one for your timezone.
Reference:
XXII. Date and Time Functions
Appendix H. List of Supported Timezones
List of timezones in the group Others
.
A New Starter again
thank u buddys. it seems ive done it.
Glad to hear that.
.
A New Starter again
Try...Originally Posted by LostSheep
putenv ('TZ=ULAT/ULAST');
reference from
http://home.tiscali.nl/~t876506/TZworld.html
PS: TZ doesn't work on all servers apparantly.
thank u gilby, thats it. i found my answer in reference u gave. tnx