import pytz
from datetime import datetime
from datetime import timedelta
from openerp import SUPERUSER_ID
user_pool = self.pool.get('res.users')
user = user_pool.browse(self.cr, SUPERUSER_ID, self.uid)
tz = pytz.timezone(user.partner_id.tz) or pytz.utc
# Suppose 'tz' fetch 'Asia/Kolkata'
# Suppose date_end = '2014-06-17 16:25:25'
date_from = pytz.utc.localize(datetime.strptime(date_end, "%Y-%m-%d %H:%M:%S")).astimezone(tz)
# Now if i print date_form --->'2014-06-17 16:25:25+05:30' but i want to print it in '2014-06-17 21:55:25'
please help me guys
Thanks