How to set Time Server for Amazon API?

  • alexandralin
  • 12/31/11
  • Offline
Posted: Tue, 2012-02-21 00:45

Hi Fellows,

I just build a site use Amazon Fresh Store Builder. After I completed the installation, I can't grab the products. I sent an email to their support to ask the problem and get a reply as below:

"This is the error I get on your site when checking amazon connection

<?xml version="1.0"?> RequestExpiredRequest has expired. Timestamp date is 2012-02-20T19:01:39Z.cf3

This means that the time on your hosting provider server is wrong and amazon api requires the correct time to return any products. Please contact your hosting provider."

Can you help me how to set my time server to match with Amazon API? I have changed TimeZone (=on System Time) to Europe/London.

Thanks for your kind help.

Best Regards,


Howdy, If you run the

  • andreychek
  • 01/05/09
  • Offline
  • Tue, 2012-02-21 09:36

Howdy,

If you run the command "date", is that time that it shows you correct for your timezone?

And is the timezone that it lists correct?

-Eric


Time still doesn't match up

  • alexandralin
  • 12/31/11
  • Offline
  • Tue, 2012-02-21 23:39

Hi Andrey,

Thanks for your quick respond.

I have changed:

PHP 5 use GMT

MySQL use GMT

System server use GMT

and then I run command "date", the result is GMT too.

But I still failed to grab product from Amazon. Here is a reply from script developer:

"I just checked again and same issue

RequestExpiredRequest has expired. Timestamp date is 2012-02-21T23:56:21Z.74ce8fe0-baba-48c6-a86e-8d94eb769c88

The time is wrong. Says it's 56 minutes the time you host returned but it's actually 7:16 right now. I understand the 23 is from a different time zone but as you see the time doesn't match up."

May you advise what setting that I must change to match the time?

Thanks for your kind help.

BRgds, Leo


Is the time on your system

  • andreychek
  • 01/05/09
  • Offline
  • Wed, 2012-02-22 08:45

Is the time on your system actually correct though?

The timezone it's using shouldn't be a problem, but you'd want to make sure that the time your server shows is correct.

-Eric


Hi Eric, I have checked use

  • alexandralin
  • 12/31/11
  • Offline
  • Wed, 2012-02-22 09:13

Hi Eric,

I have checked use command "date' and also check in System Time. In few minutes a go, I got same result 22/Feb/2012 13:44.

Do I need to install NFS? If yes, please let me know which packages that I must install?

nfs-utils 1.0.9-54.el5

nfs-utils-lib 1.0.8-7.6.el5

system-config-nfs 1.3.23-1.el5

Thanks for your kind help.

Best regards, Leo


Well, I can't verify the time

  • andreychek
  • 01/05/09
  • Offline
  • Wed, 2012-02-22 10:06

Well, I can't verify the time for you -- when you run "date", is that time the correct time for the timezone it's setup to use?

You don't need NFS, that's not related to timekeeping.

-Eric


Hi Eric,Yes, the time is

  • alexandralin
  • 12/31/11
  • Offline
  • Wed, 2012-02-22 10:58

Hi Eric,

Yes, the time is correct with the timezone, GMT. But still can't grab the product from Amazon and get the message like above.

Thanks 'n rgds, Leo


Hi EricAny idea to solve

  • alexandralin
  • 12/31/11
  • Offline
  • Thu, 2012-02-23 21:45

Hi Eric

Any idea to solve this problem? My script developer says that the problem in my server. They checked a couple times and say that my server is using the wrong time. Their script is not giving that error, it's coming directly from amazon.

Thanks for your kind help.

BRgds 'n GBU,

Leo


Well, I don't know what the

  • andreychek
  • 01/05/09
  • Offline
  • Fri, 2012-02-24 11:02

Well, I don't know what the right time there is -- but if your server is using the wrong time, maybe even just a few minutes off, you'd need to correct that.

The problem is one of two things though:

  1. The server has the incorrect time (or the time isn't correct for the listed timezone)

  2. The PHP script is passing in the wrong time, or timezone, to Amazon.

It's one of those two things :-)

If your time is off though, you'd just need to set it to the correct time. That can be done by going into Webmin, searching for "system time" in the search box at the bottom, and then the first result should be "System Time".

In addition to being able to set the time there, you could also set a time server sync, so that it gets it's time from a central server, which will also make sure it's correct.

-Eric