Is there PHP web service to display the IST date and time?

I need a php web service to display  the IST time. In my website the date is often changed, So I could not either convert them to my IST date and time or display the current date and time?
LVL 36
Loganathan NatarajanLAMP DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi there,

Try this, hope it helps.

//Get GMT Date/Time and adds offset to IST
echo gmdate("F j, Y, g:i a", strtotime("+5 hours 30 minutes")); 

Open in new window

Loganathan NatarajanLAMP DeveloperAuthor Commented:
Thanks for the reply. I have already this code and displaying the IST time. My actual problem is the server GMT time gets varies every day. It is not reliable ... as i am using shared hosting.. very difficult to explain this problem to them... also they just reset and again the problem arise ... so i  don't want to depend on them ... that is why i want to access the web services....

any ideas?
Ray PaseurCommented:
Take a look at this page:

Also, see here:

HTH, ~Ray
OWASP: Threats Fundamentals

Learn the top ten threats that are present in modern web-application development and how to protect your business from them.

Loganathan NatarajanLAMP DeveloperAuthor Commented:
i don't think this would help to me?

as i need to retrieve or get the date to display...
Ray PaseurCommented:
It looks like is doing what you want.  Why not CURL that page?  Or better yet, contact them and ask how they sync the time.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Loganathan NatarajanLAMP DeveloperAuthor Commented:
OK, i shall study on that.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.