Показать сообщение отдельно
Старый 07.09.2010, 18:57   #6  
oip is offline
oip
Axapta
Лучший по профессии 2014
 
2,564 / 1416 (53) ++++++++
Регистрация: 28.11.2005
Записей в блоге: 1
Именно так. В базе данных всегда хранится UTC. А при выводе на форме уже конвертируется исходя из часового пояса пользователя. Я еще раз дам ссылку на хороший FAQ Ивана.
http://kashperuk.blogspot.com/2010/0...s-ax-2009.html

Цитата:
Q: How is the UtcDateTime stored in the database? Is it displayed the same way on forms?
A: The UtcDateTime fields are in the database always stored in Coordinated Universal time (UTC). Whenever displayed on forms and bound to table fields, the data is converted to the user's preferred timezone. Note, that you need to take care of the conversion yourself, if the control is not bound to a field. For an example, see the init method of the tutorial form.
За это сообщение автора поблагодарили: 4avez (1).