One can do
request.now = request.utcnow
For applications which are usually accessed from the same time-zip as the
server the current server makes it easier to set dates.
On Thursday, 7 November 2013 10:14:03 UTC-6, Jonathan Lundell wrote:
>
> Digressing slightly: it seems to me that one would
Digressing slightly: it seems to me that one would ordinarily almost always
want to use datetime.utcnow() rather that datetime.now(); likewise
request.utcnow. At least in the database.
On 7 Nov 2013, at 8:03 AM, Anthony wrote:
> On Thursday, November 7, 2013 10:06:57 AM UTC-5, Jonathan Lundel
On Thursday, November 7, 2013 10:06:57 AM UTC-5, Jonathan Lundell wrote:
> On 7 Nov 2013, at 6:00 AM, Anthony >
> wrote:
>
> Actually, my original explanation wasn't quite correct -- I made the
> corrections in the original post (same conclusion though -- #2 should be
> preferred, but they shou
On 7 Nov 2013, at 6:00 AM, Anthony wrote:
> Actually, my original explanation wasn't quite correct -- I made the
> corrections in the original post (same conclusion though -- #2 should be
> preferred, but they should both result in nearly the same value). I don't see
> how using datetime.now w
Actually, my original explanation wasn't quite correct -- I made the
corrections in the original post (same conclusion though -- #2 should be
preferred, but they should both result in nearly the same value). I don't
see how using datetime.now would lead to the error you are getting, but go
ahea
Thanks Anthony for the explanation.
We am using #1 and occasionally get '*insufficient data left in message*',
could it be because of datetime.now?
On Thursday, 7 November 2013 17:56:47 UTC+5, Anthony wrote:
>
> Is there any difference between following two statements:
>> #1
>> from datetime imp
>
> Is there any difference between following two statements:
> #1
> from datetime import datetime
> db.my_table.insert(updated=datetime.now)
>
> and
> #2
> from datetime import datetime
> db.my_table.insert(updated=datetime.now())
>
I believe they should result in (almost) the same entry into t
7 matches
Mail list logo