Bonjour a tous,
J'ai la table posts definie de la facon suivante:
1 2 3 4 5 6 7 8 9 10
| CREATE TABLE posts (
post_id INT UNSIGNED NOT NULL AUTO_INCREMENT,
thread_id INT UNSIGNED NOT NULL,
user_id INT UNSIGNED NOT NULL,
message TEXT NOT NULL,
posted_on DATETIME NOT NULL,
PRIMARY KEY (post_id),
INDEX (thread_id),
INDEX (user_id)
); |
J'ecris la requete suivante:
SELECT `post_id` , CONVERT_TZ(posted_on, 'UTC', 'America/New_York') AS date FROM `posts`
MySQL ecrit:
Showing rows 0 - 14 (15 total, Query took 0.0003 sec)
Mais qund je regarde le resultat de la requete, la colonne date est rempli de NULL, alors que le champ posted_on de la table posts a bien des dates.
Y a t il quelque chose que j'ai oublie dans mon convert_tz()?
Merci
Billy
Partager