I want to convert AM and PM Hour,
here my code:
new_lead_time_schedule = datetime.strptime(sale_order_line.order_id.date_order, DEFAULT_SERVER_DATETIME_FORMAT) + timedelta(days=sale_order_line.customer_lead or 0.0) if sale_order_line.shift2 == 'morning': new_lead_time_schedule = fields.Datetime.context_timestamp(self, new_lead_time_schedule).replace(hour=0, minute=0, second=0).astimezone(utc) elif sale_order_line.shift2 == 'afternoon': new_lead_time_schedule = fields.Datetime.context_timestamp(self, new_lead_time_schedule).replace(hour=4, minute=0, second=0).astimezone(utc)
Did you check the settings of your language first?
@Ermin: Yes, I already check it