sebastian-ardila / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

DateTimeProperty with auto_now=True reports current time instead inside to_xml() result #172

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have an entity with a DateTimeProperty with auto_now=True
2. Save the entity with put(), which causes the date to be updated to the 
current time.
3. read the date from the entity and save to string1
4. write entity.to_xml() into string2
5. The two dates are now different. string1 contains the date at the time of 
put() and string2 contains the date at the time to_xml() was called.

What is the expected output? What do you see instead?

I expect the date inside the xml output to be the date at the time the last 
put() was performed. Instead, I get the present time's date.

What version of the product are you using? On what operating system?

Python and 1.3.3, Windows. Same behaviour both on localhost and appspot.com 

Original issue reported on code.google.com by marco.br...@gmail.com on 14 Jun 2010 at 3:56

GoogleCodeExporter commented 9 years ago
I don't think this is related to the helper, it is a duplicate of this issue, 
isn't it?  http://code.google.com/p/googleappengine/issues/detail?id=322

Original comment by dherbst on 15 Jun 2010 at 10:54

GoogleCodeExporter commented 9 years ago
Indeed it is, thanks for the pointer...

Original comment by marco.br...@gmail.com on 16 Jun 2010 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by m...@google.com on 17 Jun 2010 at 9:15