Comment 5 for bug 979550

Revision history for this message
Brett Wilkins (brettwilkins) wrote :

Hi Ravish,

I am completely aware that this is a server issue - openobject-server, that is. My colleague Ian added addons as it effects on addons as well (addons could use the new functionality, etc).

I'm also completely aware that I can use the above to get date&time in my time zone. in fact, that's almost the exact code that I have to do so (except there's no real point to using formatLang IMHO).
However, pytz is not available in the context of the eval'd statements in a stock install of openerp, rendering the above useless.

What I created this bug for was to generate discussion around date, time and timezone related functions, and hopefully get some sort of functionality into core that would be useful in the codebase as well as in reports like this.

Would it be preferable if I came up with a patch/merge that deals with this problem?