I'm probably having a bad hair day, but I can't quite get the pieces 
together.

I'd like to display the time an ajax load completes so the user can see how 
fresh the information is when then start cycling through tabs (what, more 
than 1 tab?).

Something like "Found X dingbats this visit, at 2014-03-22 11:41:00"

The date can be in UTC format, as in
 var d = new Date();
 var n = d.toUTCString()


although the client's local time would be better.  My efforts to display 
this ain't working, so far.
(wrapped the above in a function def at top of .load file, and had another 
script tag at the end to try to invoke it.
 Also tried duplicating a jquery document ready function. Nothing showed, 
and I didn't seem to have errors on the console,
 aside from Firefox's usual annoyance with bootstrap.js)


Right now, I have server local time :
{{ = datetime.datetime.today().isoformat('') }}

but again, client's local time would be better.
A minor improvement would be erver UTC, but isoformat()  apparently thinks 
utcoffset() is none, because there's no 6-char string appended with it
(should be -07:00 now that we're on DST).

Somebody want to straighten out my head on this matter?

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to