Use a DateTimeProperty, or just ignore the date part if time is all
you want.

http://stackoverflow.com/q/3605971

On May 13, 3:56 am, "Brandon Wirtz" <drak...@digerat.com> wrote:
> Yes.  Python in production.  I hadn't used this method prior, so I am not
> sure if it is "new" "expected" or I did something stupid.
>
> From: google-appengine@googlegroups.com
> [mailto:google-appengine@googlegroups.com] On Behalf Of Gopal Patel
> Sent: Friday, May 13, 2011 12:47 AM
> To: google-appengine@googlegroups.com
> Subject: Re: [google-appengine] Party like it's 1970? auto_now_add=True
>
> is it doing this on production ?
>
> On Fri, May 13, 2011 at 12:57 PM, Brandon Wirtz <drak...@digerat.com> wrote:
>
> This code    
>
> storedate = db.TimeProperty(auto_now_add=True)
>
> is storing
>
> 1970-01-01 07:24:59.747331
>
> In my data store.   The Time looks right, but the date is Jan 1 1970.
>
> Am I doing something wrong?
>
> I mean my data wasn't stored a decade prior to my birth.  Google is good,
> but it isn't "that Good"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> <mailto:google-appengine%2bunsubscr...@googlegroups.com> .
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appengine@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to