2

We are having a shared hosting plan and they are saying that do provide MYSQL Timezone support in a shared hosting plan. I can create timezone related tables in our database and populate them with required data(data from from our local MYSQL Timezone related tables. How to view the code syntax for MySQL "CONVERT_TZ" function?

Thanks Arun

asked Jun 17, 2013 at 2:23
1
  • Answer already exist in stackoverflow.com here Commented Dec 15, 2013 at 8:55

1 Answer 1

2

In order to timezone support to be around, the hosting company should have executed this:

mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql ...

The mysql_tzinfo_to_sql utility should load the time zones. Please make sure the host company has done this. If they can't or won't,

  • you could into Amazon EC2, you could have full access to MySQL and can run it yourself
  • Find a willing hosting company

BTW Here is the MySQL Documentation for CONVERT_TZ : http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_convert-tz

answered Jun 17, 2013 at 18:20
2
  • Thanks for your response. It seems that the hosting provider is not willing to do that. I have referred this link and asked them. Before purchasing the plan their support team confirmed me about their support for MySQL Timezone. I know the CONVERT_TZ date/time execution syntax. I have asked for something like "SHOW FUNCTION CODE" to view how this CONVERT_TZ function is implemented in MySQL Server and try to adopt and create as a user defined function so that I may execute the function against the Timezone related tables adopted from MySQL and created by me in our local database. Thanks-Arun Commented Jun 18, 2013 at 2:32
  • @pranivi - Were you successful in creating a user-defined equivalent to the CONVERT_TZ function which utilises your local timezone-related database tables? Commented Jul 4, 2018 at 8:05

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.