<?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: Time zones in Google App Engine</title>
	<atom:link href="http://www.letsyouandhimfight.com/2008/04/12/time-zones-in-google-app-engine/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.letsyouandhimfight.com/2008/04/12/time-zones-in-google-app-engine/</link>
	<description></description>
	<lastBuildDate>Wed, 25 Nov 2009 09:57:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jon Rosebaugh</title>
		<link>http://www.letsyouandhimfight.com/2008/04/12/time-zones-in-google-app-engine/comment-page-1/#comment-5</link>
		<dc:creator>Jon Rosebaugh</dc:creator>
		<pubDate>Wed, 25 Nov 2009 09:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.letsyouandhimfight.com/?p=3#comment-5</guid>
		<description>Yeah, that does make sense.</description>
		<content:encoded><![CDATA[<p>Yeah, that does make sense.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Davies</title>
		<link>http://www.letsyouandhimfight.com/2008/04/12/time-zones-in-google-app-engine/comment-page-1/#comment-4</link>
		<dc:creator>Ben Davies</dc:creator>
		<pubDate>Wed, 25 Nov 2009 09:43:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.letsyouandhimfight.com/?p=3#comment-4</guid>
		<description>Thanks - this code sample and your explanation is really useful. I am only new to python (started with Google App Engine) but I needed to make a change to your code to avoid errors with entities without values in the TzDateTimeProperty. &lt;br&gt;&lt;br&gt;	def make_value_from_datastore(self, value):&lt;br&gt;		value = super(TzDateTimeProperty, self).&lt;br&gt;			make_value_from_datastore(value)&lt;br&gt;#Added this check to see if the property had a value&lt;br&gt;		if value is not None: &lt;br&gt;			if value.tzinfo is None:&lt;br&gt;				value = value.replace(tzinfo=pytz.utc)&lt;br&gt;			else:&lt;br&gt;				value = value.astimezone(pytz.utc)&lt;br&gt;		return value&lt;br&gt;&lt;br&gt;Thanks again and let me know if the above change makes sense. (Works for me)</description>
		<content:encoded><![CDATA[<p>Thanks &#8211; this code sample and your explanation is really useful. I am only new to python (started with Google App Engine) but I needed to make a change to your code to avoid errors with entities without values in the TzDateTimeProperty. </p>
<p>	def make_value_from_datastore(self, value):<br />		value = super(TzDateTimeProperty, self).<br />			make_value_from_datastore(value)<br />#Added this check to see if the property had a value<br />		if value is not None: <br />			if value.tzinfo is None:<br />				value = value.replace(tzinfo=pytz.utc)<br />			else:<br />				value = value.astimezone(pytz.utc)<br />		return value</p>
<p>Thanks again and let me know if the above change makes sense. (Works for me)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdeibele</title>
		<link>http://www.letsyouandhimfight.com/2008/04/12/time-zones-in-google-app-engine/comment-page-1/#comment-2</link>
		<dc:creator>jdeibele</dc:creator>
		<pubDate>Mon, 10 Aug 2009 08:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.letsyouandhimfight.com/?p=3#comment-2</guid>
		<description>I&#039;m trying to write out log data in a way that is more user-friendly.   So rather than showing the UTC time, I want to show it in Pacific time and let the user change it.&lt;br&gt;&lt;br&gt;I&#039;m new to Python and Django.   Can you give simple examples of how to use this?&lt;br&gt;&lt;br&gt;Thanks very much for sharing.</description>
		<content:encoded><![CDATA[<p>I&#39;m trying to write out log data in a way that is more user-friendly.   So rather than showing the UTC time, I want to show it in Pacific time and let the user change it.</p>
<p>I&#39;m new to Python and Django.   Can you give simple examples of how to use this?</p>
<p>Thanks very much for sharing.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
