Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5065 Lượt xem

Is the database able to store datetime in ISO format?

2007-06-20T12:34:40+03:00

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

If I understood you correctly:

OpenERP stores dates using the date datatype, with UTC timezone. The date format is not relevant for the database storage; it's only relevant when you convert a date to a text representation.

Ảnh đại diện
Huỷ bỏ

ORM returns the date from the database in ISO format. Clients get to use that or reformat based on whatever they want.