Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4348 Widoki

 I found the field type in PostgreSQL is 'timestamp without time zone' if the type of a odoo model field is 'openerp.fields.Datetime'.

 After log statements that running in PostgreSQL, it seem that if write the '2016-09-08 00:00:00' of Beijing Time (+8) to , or read it form the database, the ORM tool of Odoo will convert the string to '2016-09-07 16:00:00' before form the SQL statement to database.

 I want to figure out the mechanism of this converts and then found there is no python code work for it. Meanwhile, there are some proof which can point out it was the javascript code that complete this converts each times.

 Is my conclusion right? Did Odoo server end just consider every datetime string is the UTC and the client end (javascript execute by browsers) in charge the converts totally?

Are there anyone can give me the evidence that can prove (or disprove) of mine?


Thanks.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
kwi 23
3203
2
lut 21
16362
1
paź 20
3393
2
sie 19
3762
1
kwi 16
6711