How to set Time Server for Amazon API?

9 posts / 0 new
Last post
#1 Mon, 02/20/2012 - 23:45
alexandralin

How to set Time Server for Amazon API?

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,

Tue, 02/21/2012 - 08:36
andreychek

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

Tue, 02/21/2012 - 22:39
alexandralin

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

Wed, 02/22/2012 - 07:45
andreychek

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

Wed, 02/22/2012 - 08:13
alexandralin

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

Wed, 02/22/2012 - 09:06
andreychek

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

Wed, 02/22/2012 - 09:58
alexandralin

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

Thu, 02/23/2012 - 20:45
alexandralin

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

Fri, 02/24/2012 - 10:02
andreychek

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

Topic locked