Getting at User's Account (for Timezone Settings)

7 views
Skip to first unread message

Tom Clancy

unread,
Nov 18, 2009, 4:41:37 PM11/18/09
to Pinax Users
Is there a way to get to the related account from the request.user
object? I'm trying to localize dates and what I'd like to is something
like:

entry.logtime|localtime:user.account.timezone

Brian Rosner

unread,
Nov 18, 2009, 7:20:07 PM11/18/09
to pinax...@googlegroups.com
That isn't supported yet, but in templates you should be able to write:

entry.logtime|localtime:account.timezone

Brian Rosner
http://oebfare.com
http://twitter.com/brosner

Reply all
Reply to author
Forward
0 new messages