Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change time for server i different time zone


Crazypilot

Recommended Posts

I am setting up a shop in europe but my server (ipower) is in the states.

I have been scanning through the forums and there seems to be a lot of file changing to get it correct.

 

On my server info I saw that there was a installed perl module named :

 

Time::Timezone

 

The script looks like this:

 

use Time::Timezone;

print tz2zone();

print tz2zone($ENV{'TZ'});

print tz2zone($ENV{'TZ'}, time());

print tz2zone($ENV{'TZ'}, undef, $isdst);

$offset = tz_local_offset();

$offset = tz_offset($TZ);

 

more information about the code:

http://search.cpan.org/src/MUIR/Time-modul...ime/Timezone.pm

 

The thing is that I'm not very good at the programming part.

 

Have anyone tried this script and what should I insert to ge Central european time?

 

Any help is appreciated.

 

Crazypilot

Link to comment
Share on other sites

Ipower does not alow you to change your system time... I have them as well.

 

Only thing you can do is e-mail their support and have them change your system time. They may or may not do it...

Link to comment
Share on other sites

Ipower does not alow you to change your system time... I have them as well.

 

Only thing you can do is e-mail their support and have them change your system time.  They may or may not do it...

 

 

Thanks for replying.

 

Ok, if they can change the system time, will that take care of database time as well?

 

There must be lots of shops around the globe with US servers and an easy fix would be useful.

 

Regards Crazypilot

Link to comment
Share on other sites

If you have a dedicated server with a good hosting company, you should be able to ask them to change the server time. (Both PHP and MySQL)

 

If it is a shared server, I'm afraid there isn't much you can do about it.

Link to comment
Share on other sites

By the way Jschein, I assume you have/had the same problem.

Did you manage to make Ipower to change system time?

 

Cp

 

Sorry crazy... Nope... They wouldn't do it. Felt if I was nicer they would have though.

 

About to get rid of ipower in 5 minutes.... tokyotoys.biz someone is link to my site and now my site is linking to his. Either someone copied and pasted html code ot ipower's database is fuct. Either way, I lost only one monitor, 2 keyboards and one mice today.

 

All of 2 straight weeks of testing and modding the site to be fully loaded just to have it go down over "we're not sure what happened".... AAARGH

Link to comment
Share on other sites

Sorry crazy... Nope... They wouldn't do it.  Felt if I was nicer they would have though.

 

About to get rid of ipower in 5 minutes....  tokyotoys.biz someone is link to my site and now my site is linking to his.  Either someone copied and pasted html code ot ipower's database is fuct.  Either way, I lost only one monitor, 2 keyboards and one mice today.

 

All of 2 straight weeks of testing and modding the site to be fully loaded just to have it go down over "we're not sure what happened".... AAARGH

 

 

Jschein, lol :P

 

World is small, I am in fact TokyoToys.biz!!

 

I made a different post regarding the issue:

 

http://www.oscommerce.com/forums/index.php?sho...4&hl=crazypilot

 

and it seems there was a cach problem with shared /tmp directories.

 

Seems like it's working now.

 

Regards

 

Hans CP

Link to comment
Share on other sites

To all trying to change server/system time on a shared server.

 

I couldn't find a shortcut way to do it on a Ipower server.

However it was not so bad at all doing it the PUTENV way.

 

Follow the instructions on this thread:

 

http://www.oscommerce.com/forums/index.php?showtopic=32920

 

 

Don't forget to backup :sweating:

 

Regards Cp

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...