View Single Post
Old 02-19-2011, 07:01 PM   #4
spedinfargo
Groupie
spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.spedinfargo is the king of the Divan.
 
Posts: 155
Karma: 106422
Join Date: Nov 2010
Device: none
Yay! I finally found what was going on here.

After getting the string formatted just like I wanted:

mydate=time.strftime("%a, %b %d, %Y", c)

I had to somehow convert it to a unicode string before adding it as an article. So instead of this:

'date' :' {' + mydate + '}'

I needed this:

'date' :u' {' + mydate + '}'

All good now...
spedinfargo is offline   Reply With Quote