Skip to Content
author's profile photo Former Member
Former Member

Datenow function shows different time values

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 10, 2008 at 12:46 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Michael,

      remember that datenow evaluation in the link editor is done locally and not on the server. Then the local time is used. Whereas the execution on the server side uses the server time. You are right, this is somehow misleading, but I think there is no way around.

      Regards,

      Matthias

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.