← Back to team overview

openerp-india team mailing list archive

[Bug 982881] Re: Feed notification time of meeting is different from actual meeting

 

Marcel,

This would help you for sure.

Make sure context has the 'tz' value. Also the user's timezone is set.

from tools import DEFAULT_SERVER_DATE_FORMAT,
DEFAULT_SERVER_DATETIME_FORMAT

date = fields.datetime.context_timestamp(cr, uid,
datetime.datetime.strptime(DATE_TO_BE_CONVERTED),
DEFAULT_SERVER_DATETIME_FORMAT), context)

converted_date = date.strftime(DEFAULT_SERVER_DATETIME_FORMAT)

Regards,
Serpent Consulting Services.

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/982881

Title:
  Feed notification time of meeting is different from actual meeting

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  Entering a meeting causes a notification  on the timeline with a wrong
  timestamp (See attached screenshot)

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/982881/+subscriptions


References