need to convert UTC (aws ec2) to PST in python
<p>I need to convert UTC time, (on ec2 instance) to PST. I am trying to do this. </p>

<pre><code>from datetime import datetime
from pytz import timezone
import pytz

date_format='%m/%d/%Y %H:%M:%S %Z'
date = datetime.now()
print 'Current date &amp; time is:', date.strftime(date_format)

my_timezone=timezone('US/Pacific')

date = my_timezone.localize(date)
date = date.astimezone(my_timezone)

print 'Local date &amp; time is  :', date.strftime(date_format)
</code></pre>

<p>But the output is:</p>

<pre><code>Current date &amp; time is: 01/10/2012 20:01:14
Local date &amp; time is  : 01/10/2012 20:01:14 PST
</code></pre>

<p>Any reason why I am not getting the right PST time?</p>
