Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to change default time


Guest

Recommended Posts

Posted

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

Posted

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 ======>>>>>.

Posted
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.

Posted
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

Posted

I used the Time Zone controbution but my server returned error "unknown Function" Time_zone

Posted
I used the Time Zone controbution but my server returned error "unknown Function" Time_zone

Did you do all 6 steps?

Posted
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.

Posted

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 ======>>>>>.

Posted
thanks guys

 

I will try one

Do post back on how you went.

Posted

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

Posted

this was an error for first contr

 

1193 - Unknown system variable 'time_zone'

 

SET time_zone='+4:00'

 

[TEP STOP]

Posted
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.

Posted

I e-mailed to my server so I am waiting for their response

Posted

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..

Posted

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 ======>>>>>.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...