on 10-10-2008 1:37 PM
Hi all,
I just have experienced the following problem. I am using the MII datenow function (MII 12.0.2) on a server. When using the Link Editor inside the Workbench to evaluate the datenow value, it shows the current time correctly. However, when I use the same value as a parameter to a query and pass it to a varchar field in the database (Oracle 10g), the hour is one less than current time.
For example, if the link editor evaluates 2008-10-10T14:32:33, the table field contains 2008-10-10T13:32:33 after insert.
What is happening to the value
- when it is evaluated in the workbench
- passed to a query as text and inserted to a text field?
Using a date field instead of varchar and TO_DATE function shows the same result.
Michael
Hi Michael,
this looks like a summer saving time problem. I could imagine that the workbench which is executed locally on your computer is one hour
ahaed the server time. So please check your local computers time and the MII / DB servers time.
Regards,
Matthias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Matthias,
it is correct that my local PC time is UTC2 (MESZ), and the server time is UTC1.
What makes me wonder is the fact that the value inside the workbench differs from what is used to insert into the table, because usually I can rely on the fact that the same value that I checked in the workbench is used to maintain table data.
I find this behavious confusing, because I must remember to manually correct the hour value (e.g. using the dateaddhours function).
Michael
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.