Setting default value to a time attribute
Hello, I need to set a defualt value for a time attribute. I use the following dql:
ALTER TYPE lae_informe_60000012 MODIFY (lae_atr_fechalistado(SET default= date('05-12-2011'),SET read_only=true,SET not_null=true)) publish
But then, I check the value and is the following one:
lae_atr_fechalistado | 13/04/2011 1:00:00 |
As you can see the month has been increased, and the day decreased...Why does this happen?? How can I set correctly the default value?
Many thanks!!
Best Answer
-
In the end the problem was the time zone configuration in my server. It was set to UTC time, while were I live the tz is UTC +1:00, so the system automatically subtracted one hour to every time attribute set. I solved it by setting the value of r_normal_tz attribute in dm_docbase_config object to 3600 (number of seconds of an hour to add to UTC time).
Regards.
0
Answers
-
Are you using DQL editor within DA or repoint or DQL command line tool on Content Server. I would also be more exact in your query:
ALTER TYPE lae_informe_60000012 MODIFY (lae_atr_fechalistado(SET default= date('05-12-2011 00:00:00'),SET read_only=true,SET not_null=true)) publish
0 -
In the end the problem was the time zone configuration in my server. It was set to UTC time, while were I live the tz is UTC +1:00, so the system automatically subtracted one hour to every time attribute set. I solved it by setting the value of r_normal_tz attribute in dm_docbase_config object to 3600 (number of seconds of an hour to add to UTC time).
Regards.
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories