Guest Posted February 2, 2008 Posted February 2, 2008 Hi all I would like to change the time products are added or newses added to website I think oscommerce uses GMT time, I need to convert it to local time But I do not know how to do please help
♥geoffreywalton Posted February 2, 2008 Posted February 2, 2008 look in /includes/languages/english.php Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted February 2, 2008 Posted February 2, 2008 Hi all I would like to change the time products are added or newses added to website I think oscommerce uses GMT time, I need to convert it to local time But I do not know how to do please help Osc uses the server time, if the server is not in your tz, you will need to offset it. Server Timezone fix in the contributions area.
Guest Posted February 2, 2008 Posted February 2, 2008 look in /includes/languages/english.php Hi Geo, I did look, but I am not good at PHP, can you recommend what to do? thanks
Guest Posted February 4, 2008 Posted February 4, 2008 I used the Time Zone controbution but my server returned error "unknown Function" Time_zone
Guest Posted February 4, 2008 Posted February 4, 2008 I used the Time Zone controbution but my server returned error "unknown Function" Time_zone Did you do all 6 steps?
Guest Posted February 4, 2008 Posted February 4, 2008 Did you do all 6 steps? Yes, I did these 1. in the file /catalog/includes/langauges/english.php add the following only if it is NOT already present :- 2. in the file /catalog/admin/includes/langauges/english.php add the following only if it is NOT already present :- 3. in the file /catalog/includes/functions/database.php find the code :- 4. in the file /catalog/admin/includes/functions/database.php find the code :- 5. in the file catalog\includes\configure.php add the following code to the end of the file, but before the ending ?> :- 6. in the file catalog\admin\includes\configure.php add the following code to the end of the file, but before the ending ?> :- BUT 1. My location is Georgia, Tbilisi, So instead of Australia/Sydney I wrote Georgia/Tbilisi 2. I edited not English.php, But Georgian.php, because I removed English.php and use only Georgian Language this is it.
Guest Posted February 4, 2008 Posted February 4, 2008 Yeah, your changes are fair enough. Don't know about Georgia/Tbilisi but that is not the problem. There is another contribution.
♥geoffreywalton Posted February 4, 2008 Posted February 4, 2008 More info on setlocale http://uk.php.net/setlocale Should be able to hunt down settings for Georgia / Tiblisi using this and google. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted February 4, 2008 Posted February 4, 2008 thanks guys I will try one Do post back on how you went.
Guest Posted February 4, 2008 Posted February 4, 2008 I have reviewed the Time Zone Offset, but does it work only for orders? I mean does it correct any time placed on website? as I understood it only regulates order's time
Guest Posted February 4, 2008 Posted February 4, 2008 this was an error for first contr 1193 - Unknown system variable 'time_zone' SET time_zone='+4:00' [TEP STOP]
Guest Posted February 4, 2008 Posted February 4, 2008 I have reviewed the Time Zone Offset, but does it work only for orders? I mean does it correct any time placed on website? as I understood it only regulates order's time I don't use it, so I don't know. Thinking back, why not ask your webhost about the server error "unknown Function" Time_zone It maybe something they have not enabled.
Guest Posted February 4, 2008 Posted February 4, 2008 I e-mailed to my server so I am waiting for their response
Guest Posted February 4, 2008 Posted February 4, 2008 I got this notice We are using GMT time on our servers. This makes it easy to calculate to calculate your local time from it. E.g. if your time zone is -3 you simply subtract three hours from the GMT time in your script to get your local time..
♥geoffreywalton Posted February 4, 2008 Posted February 4, 2008 Did you try @setlocale(LC_TIME, 'ge_GE.ISO_8859-1'); Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.