Reply to UTC Timestamp into MySQL

Your name:

Reply:


Posted by James on 01/03/07 13:50

I am attempting to write a statement for inserting a current timestamp into
a MySQL database. The MySQL field is of type datetime. The statement I
first tried to generate a value for the field is:

date("Y-m-d H:i:s")

Then, I tried:

gmdate("Y-m-d H:i:s")

Both resulted in a timestamp in the local timezone. What I wish to do is
place the timestamp into UTC, so when later displayed in a browser it can be
converted to a local TZ.

Thanks for your help!
James

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация