<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Insert into MySQL datetime column from PHP</title>
	<atom:link href="http://programanddesign.com/uncategorized/insert-into-mysql-datetime-column-from-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://programanddesign.com/uncategorized/insert-into-mysql-datetime-column-from-php/</link>
	<description>Tips, tricks, tutorials, and tools on programming &#38; web design</description>
	<lastBuildDate>Tue, 08 May 2012 14:53:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Mark</title>
		<link>http://programanddesign.com/uncategorized/insert-into-mysql-datetime-column-from-php/comment-page-1/#comment-226</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 03 Jul 2009 22:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://programanddesign.com/?p=240#comment-226</guid>
		<description>Not sure if you can change the timezone of a mysql server on a shared host though, can you? The only problem with timestamps is that you can&#039;t do date math on it, since as you said, it&#039;s stored as unix time. Of course, it depends on your requirements; this may be a better solution. Thanks for the comment :)</description>
		<content:encoded><![CDATA[<p>Not sure if you can change the timezone of a mysql server on a shared host though, can you? The only problem with timestamps is that you can&#8217;t do date math on it, since as you said, it&#8217;s stored as unix time. Of course, it depends on your requirements; this may be a better solution. Thanks for the comment <img src='http://programanddesign.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bucabay</title>
		<link>http://programanddesign.com/uncategorized/insert-into-mysql-datetime-column-from-php/comment-page-1/#comment-222</link>
		<dc:creator>bucabay</dc:creator>
		<pubDate>Fri, 03 Jul 2009 14:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://programanddesign.com/?p=240#comment-222</guid>
		<description>I usually just store dates as a mysql timestamp column since mysql timestamps are stored as unix time, which is relative to UTC. 

http://en.wikipedia.org/wiki/Unix_time
http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html

You only have to worry that the timezone of the mysql server was correct when you saved a value. Reads automatically reflect the timezone it is read in.</description>
		<content:encoded><![CDATA[<p>I usually just store dates as a mysql timestamp column since mysql timestamps are stored as unix time, which is relative to UTC. </p>
<p><a href="http://en.wikipedia.org/wiki/Unix_time" rel="nofollow">http://en.wikipedia.org/wiki/Unix_time</a><br />
<a href="http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html</a></p>
<p>You only have to worry that the timezone of the mysql server was correct when you saved a value. Reads automatically reflect the timezone it is read in.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

