Odoo Server DateTime Format

Probuse Admin

date_order = time.strftime(DEFAULT_SERVER_DATE_FORMAT)
 
from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT
If you want to pass date or datetime in default value, do not use direct sysntax like time.strftime('%m-%d-%Y') but we should use: