On Saturday, January 21, 2017 at 4:26:02 AM UTC-8, Gaurav Vichare wrote: > > I want to store created_on and modified_on values of all tables in UTC > format. Audit fields are added using > db._common_fields.append(auth.signature) and in auth.signature default > value for created_on and modified_on is request.now, I want to change it to > request.utcnow. > > [...] > So how can I override default values of modified_on and created_on with > minimum lines of code? > My next task is to show record creation date/time according to user's > timezone. >
I don't have an answer to your main question, but when you get to the user's timezone stuff, you may want to look at <URL: https://github.com/niphlod/w2p_timezone_plugin> /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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.