Xp20:current-dateTime() function returning time 1 hour ahead

Do anyone know if the xp20:current-dateTime() function is incorrect? It is returning time 1 hour ahead, for example: when executed and put into a database, the column shows 2007-08-28 13:46:54.0, but the ESB flow was executed at about 12:46pm.
Any help would be greatly appreciated.

Check the timezone setting on your DB and the App server OS. They must be on different zones.
--Shiv                                                                                                                                                                                                               

Similar Messages

  • Xp20:current-dateTime dose not return actual time in daylight saving

    Hi,
    I have observed that xp20:current-dateTime dose not return the actual time in daylight saving. e.g. when the system time is 14:43:00 the xp20:current-dateTime function returns 15:43:00 i.e. additional 1 hour. Is this a known issue? How to prevent this from happening?
    Thanks in advance.

    Hello,
    I've the same problem. This occurs in BPEL middle tier instalation
    ( Linux x86 timezone set to Europe/Prague)
    and also in JDeveloper > Test xsl form. ( Localised Win XP SP2)
    BPEL version is 10.1.2.0.0.
    In our country we have now CEST ( Central European Summer Time) = GMT +2:00.
    xp20:current-dateTime returns for example 2006-06-27T13:10:15+01:00
    The time 13:10:15 is correct time in our timezone, but timezone +01:00 is not correct.
    Timezone should be +02:00. (?)
    When I insert this dateTime into database table, I have incorrect value there.
    Is there any way to solve this problem? ( any settings ...?)
    Regards
    Karel

  • Reg : xp20:current-dateTime() gives error

    Hi,
    When i use xp20:current-dateTime() function in XSLT 1.0 inside OSB ( replace activity ), it works fine when used alone ,but gives following error when used with dn:lookupvalue functio ( custom xpath function)
    BEA-382513: OSB Replace action failed updating variable "body":
    java.lang.NoSuchMethodException: For extension function, could not find method
    oracle.tip.pc.services.functions.Xpath20.current-dateTime([ExpressionContext,] ).
    Checked both static and instance methods.
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    Please let me know any other datetime function which gives current date time in the following format
    2012-05-23T06:00:11+00:00
    or plz let me knoiw the solution to the above error

    <?xml version="1.0" encoding="UTF-8" ?>
    <?oracle-xsl-mapper
    <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
    <mapSources>
    <source type="XSD">
    <schema location="../xsd/CrediTransfer.xsd"/>
    <rootElement name="CreditTransferRequest" namespace="http://vodafone.com.mt/Siebel_Order_Creation"/>
    </source>
    </mapSources>
    <mapTargets>
    <target type="XSD">
    <schema location="../xsd/CrediTransfer.xsd"/>
    <rootElement name="CreditTransferResponse" namespace="http://vodafone.com.mt/Siebel_Order_Creation"/>
    </target>
    </mapTargets>
    <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.5.0(build 110418.1550.0174) AT [FRI APR 06 15:04:12 IST 2012]. -->
    ?>
    <xsl:stylesheet version="1.0"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
    xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
    xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:dvm="http://www.sLabs.com/soa-utilities/osb/soa.utilities.dvm.LookupTable"
    xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:med="http://schemas.oracle.com/mediator/xpath"
    xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
    xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
    xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
    xmlns:soc="http://vodafone.com.mt/Siebel_Order_Creation"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:con="http://www.bea.com/wli/sb/stages/transform/config"
    xmlns:fn="www.w3.org/2004/07/xpath-functions/"
    exclude-result-prefixes="xsi xsl xsd soc bpws xp20 mhdr bpel oraext dvm hwf med ids bpm xdk xref bpmn ora socket ldap con fn">
    <xsl:template match="/">
    <xsl:variable name="ErrorMessage" select="/con:message"/>
    <!--
    <xsl:variable name="ErrorMessageTwo" select="fn:substring(ErrorMessage,1,4)"/>
    -->
    <soc:CreditTransferResponse>
    <soc:return>
    <soc:StandardResponse>
    <soc:success>
    <xsl:value-of select="dvm:lookupValue('AbstractionLayer_errorCodes','ErrorCode','2','Success','DefaultValue')"/>
    </soc:success>
    <soc:returnCode>
    <xsl:value-of select="dvm:lookupValue('AbstractionLayer_errorCodes','ErrorCode','2','returnCode','DefaultValue')"/>
    </soc:returnCode>
    <soc:message>
    <xsl:value-of select="substring($ErrorMessage,1,4)"/>
    </soc:message>
    <!--
    <soc:message>
    <xsl:value-of select="dvm:lookupValue('AbstractionLayer_errorCodes','ErrorCode','2','Message','DefaultValue')"/>
    </soc:message>
    -->
    <soc:date>
    <xsl:value-of select="xp20:current-dateTime()"/>
    </soc:date>
    </soc:StandardResponse>
    </soc:return>
    </soc:CreditTransferResponse>
    </xsl:template>
    </xsl:stylesheet>

  • Xp20:current-dateTime give time of GMT, not of our timezone

    Hi,
    process call xp20:current-dateTime(), this function give time of GMT, not of our timezone(China, GMT+8).
    for example, I call it at 10:20AM, but it return 2:20AM.
    I have edit opmn.xml, at oc4j_soa instance, add "-Duser.timezone=GMT+8" in java-options, restart soa suite.
    but not take effect.
    the server is SOA Suite 10.1.3.3 on Windows 2003.
    any suggestion is welcome.Thanks

    Thats great but what is the timezone of your server where soa suite is installed. Also what is the timezone of the dehydration store server?
    cheers
    James

  • Flash player 9 for Linux, shows time one hour ahead

    Flash player 9 show time one hour ahead on Linux. Has anybody
    seen this behavior?
    I want know if there is any fix/workaround for this?
    try following code on FP9 on Linux Mozilla. My observation
    was it shows time by one hour ahead.
    trace("Current Time "+new Date());
    I hope I am not missing something very basic here.

    Can somebody please confirm/deny this.
    FP 9 on Linux shows time one hour ahead than the local time.
    Try following line with FP9 on Linux
    trace("Current Time "+new Date());

  • How to get accurate date on current-dateTime function?

    I am new to oracle ESB. Using a DBAdapter, was trying to populate a table row column with sysdate. So, used current-dateTime in xsl mapping. Works well, I can insert time, but this time is always 1 hour greater than current time. Is there something I need to do without substracting 1 hour from it?
    We have the server & the application running in the same time zone.
    Please suggest.

    ESB is always trouble when trying to debug these issues.
    If you go to enterprise manager. When you login you should see a link to oc4j_soa, select this. If not select home.
    Select the Administration tab.
    Select the Logger Configuration link.
    search on esb, make sure it is lower case.
    Find the entry oracle.tip.esb.server.service, make change the logging level to fine.
    This should display the variables being passed in the xml.log file.
    Is the time zone the same as the database?
    Its looking like you might have to raise a SR for this as the application should not be changing the time.
    cheers
    James

  • Whatever i try my macbookpro reverts back to GMT time, two hours ahead of spain where i live. manual setting helps but synchronizing iPad puts it always at GMT can anybody help

    whatever i try my MacbookPro reverts back to GMT which is two hours ahead from where i live in spain. manual time setting helps for MacBookPro but in synchronization of iPad it uses again GMT. Can anybody help me with this problem? Thank you

    No, the app does not have to completely restart. It gets shifted in its open state into storage. Similar to how a computer uses the hard disk when it has insufficient memory.
    What complicates things is that sometimes memory does not get returned for reuse when you close an app. Thus yo should periodically double click the Home button and "delete" unnecessary apps from the multitasking dock and power off and then back on the iPod.

  • Why is my email time an hour ahead of actual time and how do I reset it?

    When I send an email, the time stamp is one hour ahead of actual time.
    How do I reset the time?

    You have to reset the time zone of your email account by going in the settings option... or you have to be selected your country, city & postal code correctlly... & this is the issue of the email provider... For more information i suggest you the help of the email provider is th best..
    You can check it by comparing to the any other email provider (ex. Gmail or yahoo mail).. if your email provider does not helps, you can still write it here....

  • Mail time 4 hours ahead

    hi everyone,
    today i noticed that the time that the phone says my mail is being recieved is 4 hours ahead from the actual time. like right now it's 7:58 pm, i check for mail and the phone says that mail was last checked at 11:58 pm.
    i looked around in settings to see if mail runs on different time or something, but nothing was there. tried changing time zones, changing the time, turning automatic time off etc. but the mail time is still 4 hours ahead of the actual time on the phone.
    has anyone else had a problem similar to this or know how to fix it?
    thanks in advance.

    experiencing identical issue as MaimiJAG.
    Date&Time is SET ATUOMATICALLY ON
    TIME ZONE SUPPORT is ON for Calendar
    please let me know if anyone has a solution for this issue. its annoying.

  • Xp20:current-dateTime() and Milliseconds

    Hi
    Does anyone know how to obtain a dateTime to 1 tenth of a second?
    2007-07-06T09:11:48+00:00 is being returned from the above function and I need the date in the following format
    2007-07-06T09:11:48.1Z
    Many thanks
    Pete

    Hi Pete,
    Here's a sample BPEL process that fills a xs:string variable called currentDateTime with a formatted date/time string:
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
      Oracle JDeveloper BPEL Designer
      Created: Fri Jul 06 14:58:24 CEST 2007
      Author:  Bastiaan Schaap, Floris Automatisering
      Purpose: Asynchronous BPEL Process
    -->
    <process name="BPELProcess1"
             targetNamespace="http://xmlns.oracle.com/BPELProcess1"
             xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
             xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
             xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
             xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
             xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
             xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
             xmlns:client="http://xmlns.oracle.com/BPELProcess1"
             xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
             xmlns:ora="http://schemas.oracle.com/xpath/extension"
             xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
             xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions">
        <!--
            PARTNERLINKS                                                     
            List of services participating in this BPEL process              
        -->
        <partnerLinks>
            <!--
          The 'client' role represents the requester of this service. It is
          used for callback. The location and correlation information associated
          with the client role are automatically set using WS-Addressing.
        -->
            <partnerLink name="client" partnerLinkType="client:BPELProcess1"
                         myRole="BPELProcess1Provider"
                         partnerRole="BPELProcess1Requester"/>
        </partnerLinks>
        <!--
            VARIABLES                                                       
            List of messages and XML documents used within this BPEL process
        -->
        <variables>
            <!-- Reference to the message passed as input during initiation -->
            <!-- Reference to the message that will be sent back to the requester during callback -->
            <variable name="inputVariable"
                      messageType="client:BPELProcess1RequestMessage"/>
            <variable name="outputVariable"
                      messageType="client:BPELProcess1ResponseMessage"/>
            <variable name="currentDateTime" type="xsd:string"/>
        </variables>
        <!--
           ORCHESTRATION LOGIC                                              
           Set of activities coordinating the flow of messages across the   
           services integrated within this business process                 
        -->
        <sequence name="main">
            <!-- Receive input from requestor. (Note: This maps to operation defined in BPELProcess1.wsdl) -->
            <receive name="receiveInput" partnerLink="client"
                     portType="client:BPELProcess1" operation="initiate"
                     variable="inputVariable" createInstance="yes"/>
            <!--
              Asynchronous callback to the requester. (Note: the callback location and correlation id is transparently handled using WS-addressing.)
            -->
            <bpelx:exec name="getFormattedCurrentDateTime" language="java"
                        version="1.4">
                <![CDATA[java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat();         
    sdf.applyPattern("yyyy-MM-dd'T'HH:mm:ss.S'Z'");         
    String formattedDate = sdf.format(new java.util.Date());         
    addAuditTrailEntry("Formatted datetime string is: " + formattedDate);        
    setVariableData("currentDateTime", formattedDate);]]>
            </bpelx:exec>
            <invoke name="callbackClient" partnerLink="client"
                    portType="client:BPELProcess1Callback" operation="onResult"
                    inputVariable="outputVariable"/>
        </sequence>
    </process>HTH,
    Bas

  • Xp20:format-dateTime: How to use it

    Hi
    Can you tell me how to use this XPath function?? Give me an example please.
    I tried xp20:format-dateTime(xp20:current-dateTime(),'ddMMyyyy HHmm') but the result is
    "ddMMyyyy HHmm" (yes, the pattern itself!)
    Thanks
    Marcelo Menezes

    I don't know what the problem could be of this.
    xp20:current-dateTime() function returning time 1 hour ahead
    in this threads the guys are having the same problem (only different date function)

  • Set with filter Expirationtime comparison current-datetime does not list members: regional settings?

    Hi all;
    I've created a criteria-based set that has to filter for users that have an
    "expiration Time" "prior to" "today".
    xpath filter: /Person[ExpirationTime &lt; fn:current-dateTime()]
    I've got one user where I've set a date expired to a week ago.
    When I click view members it does not return any results. When I change the logic to
    "expiration Time" "after" "today".  to see how this logic works, it doesn't return any results either.
    I'm working in Belgium, regional settings are d/MM/yyyy H:mm (in 24h format).
    My browser language is also set to nl-BE, where FIM actually uses this in the PORTAL field too:
    Today in Belgium is 16/09/2014 16:45. But My set returns 0 members.
    I've read some articles that FIM needs the format in yyyy/MM/dd format (for import)
    Is it correct that FIM Portal doesn't handle this XPATH current-dateTime() function correctly for foreign regional settings?
    I've tried to set it current-dateTime("d/MM/yyyy") or other variants, but that gives an error when I'm trying to save.
    Kind regards,
    David

    Hi,
    I've checked, the "SQL Server Agent (MSSQLSERVER)" is running, and set to automatic.
    I've changed the Local default to "dutch (Belgium)" in the Site settings (it was English (US)):
    I've launched iisreset to restart the website.
    I've looked at the set, no members. I've validated if the users its date format was OK (and Belgian/European style) => it was.
    I've played in the set with the different options (I'm translating as these are in Dutch):
     - Prior to 1 day 
     - Prior to 1 day from today
     - Prior to "Tuesday 16 September 2014 0:00:00" (from a calendar control)
     - Prior to today
    None of these returned any user records :(

  • Xp20:format-dateTime with milli seconds always as zeroes

    Hi All,
    I am trying to use the xPath function format-datetime , but in the output factional seconds is returning all zeroes. My picture string looks like below.
    *xp20:format-dateTime(xp20:current-dateTime(),"[H01][m01][s01][f001]*
    Result always in zeroes see example below:
    *105017000*
    Do somebody have some advice on this issue?

    Use ora:getCurrentDateTime() extension function instead... It accepts java SimpleDateFormat patterns and it is able to go milliseconds...
    Cheers,
    Vlad

  • Xp20:format-dateTime method in BPEL 11g

    I am doing a date conversion as xp20:format-dateTime('2007-10-07','YYYYMMDD') and storing in a String variable - givenDateConverted
    but the result is as below
    <givenDateConverted >YYYYMMDD</givenDateConverted>
    My original requirement is to compare this givenDateConverted with the currentDate and reject if givenDateConverted is less than currentDate
    Please help
    Thanks
    Sesha

    Hi sesha,
    Your date 08-OCT-2009 is not in the expected xs:DateTime format like 2002-05-30T09:30:10Z
    This is what xp20:format-dateTime needs.
    What is the date format of the date you need to compare to the current date?
    If it is in the standard xsd:dateTime format you don't need to format anything.
    If it is a comparable format you can format the current time in that format.
    For example:
    <before>      
      <xsl:value-of select="xp20:format-dateTime(xp20:current-dateTime(),"[Y0001][M01][D01][H01][m01][s01]") > '20100909111209'"/>
    </before>see http://www.w3.org/TR/xslt20/#function-format-dateTime
    And beware of timezone issues...
    Groeten,
    HJH

  • How do i get current dateTime in xsl1.0

    Hi,
    I came to know that current-dateTime() function is working fine with xsl version 2.0 but not in xsl version 1.0
    Can anyone suggest me how to get current date time which works fine with xsl version 1.0 and BPEL process manager (OracleApplicationServer 10.1.3).

    Make sure that the History is enabled:
    *Firefox/Tools > Options > Privacy > Firefox will: "Use custom settings for history" > Remember my browsing history
    Make sure that you do not run Firefox in permanent Private Browsing mode.
    *https://support.mozilla.com/kb/Private+Browsing
    To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    *Deselect: [ ] "Always use private browsing mode"
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

Maybe you are looking for

  • New iPhone / Old Tiger MacBook that can't upgrade to new iTunes - will iCloud save me?

    Hi guys, Thanks in advance for your advice.  I have a newer iPhone (jailbroken and unlocked if that matters) and an older MacBook 10.4.11 on Tiger.  I tried to link up my new phone with iTunes but got the error that I must have the newer iTunes which

  • How to print a report which is consist a paper parameter form

    Hi ! I have created a report file with paper parameter form and also create a form. Now , when I try to run this form it display REP-0788: Warning: The value of restricted LOV parameter ppass is not among the selectable values.      USER ID     (a co

  • No nothing in my JVC LT-26A60SU

    Yesterday I got my mini mac in order to use it as a home cinema plug into my JVC TV LT-26A60SU but the problem is that i didn t get anything more than a black screen, no image at all. I read in my tv manual that JVC doesn t support MAC but i read in

  • Use of range in case of XPATH for receiver determination.

    Hi Experts, I need to achieve the following using standard receiver determination. The material number in the source message structure has to lie within a perticular range and that should decide the receiver of the message. For example: MT_SRC |----

  • User Admin Import/Export

    I'm trying to get a report of all IDs in our portal & the roles assigned to them.  When I run User Administration -> Import/Export -> User Data Export & I select <ALL USERS> the results are often missing data.  Sometimes I don't get all records; more