Convert server time to local in mscrm 2011

Hi ,
 I am getting 9hours variation and it is taking some cannada time and I want to convert it into local time  . This is my temporary solution  when I selected timezone format(i.e in options) as india it  is working fine but when
I changed my timezone to some other country it is giving me variation. can u plz help out the permanent solution in mscrm.
function dateTime() {
    var createdon = Xrm.Page.getAttribute("createdon").getValue();
    var formType = Xrm.Page.ui.getFormType();
    var date = new Date();
      if (formType != 1) {
        if (createdon != null) {
            createdon.setHours(createdon.getHours() + 2);       
            if (date > createdon) {
                Xrm.Page.ui.controls.get("fmc_followupby").setDisabled(true);

Hi hiteksha,
Since the issue regards CRM. It is out of the support boundaries of our forum, I suggestion you post the question in the following forum:http://social.microsoft.com/Forums/en-US/home?forum=crm.
It is appropriate and more experts will assist you.
Thank you for your understanding.
Regards,
Katherine xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • Need function module to convert system time to local time

    Hi Experts,
    Need function module to convert system time to local time.
    i.e country specific that to in HH:MM format.
    Thanks in advance.

    Dear Prince,
    Kindly check the following link which contains the list of function modules for date and time conversion.
    [http://www.sap-img.com/abap/date-month-pop-related-function-modules.htm]
    Regards

  • Server Time and Local Time (Dreamweaver) Off By 1 Hour

    How can I get Dreamweaver to show me the correct time stamp on my files on the server and my local machine? When I telnet into my server, the date and time stamp on all files is correct. My server time is set properly to ET (GMT-5). My local machine's time is properly set. I asked my sysadmin if PureFTP has any timezone settings and I was told by the sysadmin that all my server times and timezones are accurate. My sysadmin said that Drwamweaver is the culprit.
    I have lived with this for a long time, but it is extremely annoying and I would like to fix it.
    I searched high and low in the Dreamweaver option settings for some sort of timezone setting or offset -- found nothing.
    Has anyone experienced a 1-hour out-of-sync issue between a file's actual time stamp on the server and what Dreamweaver shows it as in the Remote/Local Files View?
    Thanks.

    During Daylight Savings Time.
    http://forums.adobe.com/message/3545349#3545349
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Windows 2008 R2 Domain Controller (PDC) - NTP server - time showing local CMOS clock

    I'm having issues setting an external source on a Windows 2008 R2 domain controller (PDC emulator role for the domain)
    Here is the output showing its source is the Local CMOS clock.
    C:\Windows\System32>w32tm /query /status
    Leap Indicator: 0(no warning)
    Stratum: 1 (primary reference - syncd by radio clock)
    Precision: -6 (15.625ms per tick)
    Root Delay: 0.0000000s
    Root Dispersion: 10.0000000s
    ReferenceId: 0x4C4F434C (source name:  "LOCL")
    Last Successful Sync Time: 06/11/2014 15:44:15
    Source: Local CMOS Clock
    Poll Interval: 6 (64s)
    1) I have performed the following on the DC with the PDC role:
    net stop w32time
    w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org"
    w32tm /config /reliable:yes
    net start w32time
    w32tm /query /configuration 
    [Configuration]
    EventLogFlags: 2 (Local)
    AnnounceFlags: 5 (Local)
    TimeJumpAuditOffset: 28800 (Local)
    MinPollInterval: 6 (Local)
    MaxPollInterval: 10 (Local)
    MaxNegPhaseCorrection: 172800 (Local)
    MaxPosPhaseCorrection: 172800 (Local)
    MaxAllowedPhaseOffset: 300 (Local)
    FrequencyCorrectRate: 4 (Local)
    PollAdjustFactor: 5 (Local)
    LargePhaseOffset: 50000000 (Local)
    SpikeWatchPeriod: 900 (Local)
    LocalClockDispersion: 10 (Local)
    HoldPeriod: 5 (Local)
    PhaseCorrectRate: 7 (Local)
    UpdateInterval: 100 (Local)
    [TimeProviders]
    NtpClient (Local)
    DllName: C:\Windows\System32\w32time.DLL (Local)
    Enabled: 1 (Local)
    InputProvider: 1 (Local)
    AllowNonstandardModeCombinations: 1 (Local)
    ResolvePeerBackoffMinutes: 15 (Local)
    ResolvePeerBackoffMaxTimes: 7 (Local)
    CompatibilityFlags: 2147483648 (Local)
    EventLogFlags: 1 (Local)
    LargeSampleSkew: 3 (Local)
    SpecialPollInterval: 3600 (Local)
    Type: NTP (Local)
    NtpServer: 0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org (Local)
    NtpServer (Local)
    DllName: C:\Windows\System32\w32time.DLL (Local)
    Enabled: 1 (Local)
    InputProvider: 0 (Local)
    AllowNonstandardModeCombinations: 1 (Local)
    VMICTimeProvider (Local)
    DllName: C:\Windows\System32\vmictimeprovider.dll (Local)
    Enabled: 1 (Local)
    InputProvider: 1 (Local)
    But still showing the output:
    C:\Windows\System32>w32tm /query /status
    Leap Indicator: 0(no warning)
    Stratum: 1 (primary reference - syncd by radio clock)
    Precision: -6 (15.625ms per tick)
    Root Delay: 0.0000000s
    Root Dispersion: 10.0000000s
    ReferenceId: 0x4C4F434C (source name:  "LOCL")
    Last Successful Sync Time: 06/11/2014 15:58:45
    Source: Local CMOS Clock
    Poll Interval: 6 (64s)
    2. If I resync and rediscover the following error appears: 
    w32tm /resync /rediscover 
    Sending resync command to local computer
    The computer did not resync because no time data was available.
    3. I've also clearing the current time config, by
    net stop w32time
    w32tm /unregister
    w32tm /register
    net start w32time
    But no change, it still shows the Local CMOS clock. 
    4. This event is showing 
    Log Name:      System
    Source:        Microsoft-Windows-Time-Service
    Date:          06/11/2014 15:43:30
    Event ID:      12
    Task Category: None
    Level:         Warning
    Keywords:      
    User:          LOCAL SERVICE
    Computer:      domaincontroller1
    Description:
    Time Provider NtpClient: This machine is configured to use the domain hierarchy to determine its time source, but it is the AD PDC emulator for the domain at the root of the forest, so there is no machine above it in the domain hierarchy to use as a time source.
    It is recommended that you either configure a reliable time service in the root domain, or manually configure the AD PDC to synchronize with an external time source. Otherwise, this machine will function as the authoritative time source in the domain hierarchy.
    If an external time source is not configured or used for this computer, you may choose to disable the NtpClient.
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Time-Service" Guid="{06EDCFEB-0FD0-4E53-ACCA-A6F8BBF81BCB}" />
        <EventID>12</EventID>
        <Version>0</Version>
        <Level>3</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-11-06T15:43:30.465619200Z" />
        <EventRecordID>77295</EventRecordID>
        <Correlation />
        <Execution ProcessID="256" ThreadID="2056" />
        <Channel>System</Channel>
        <Computer>domaincontroller1</Computer>
        <Security UserID="SID" />
      </System>
      <EventData Name="TMP_EVENT_DOMAIN_HIERARCHY_ROOT">
      </EventData>
    </Event>
    5. If I perform the below it appears DC2 is having problems but I'm not sure if related. 
    C:\w32tm /monitor
    DC1.domain.local *** PDC ***[192.168.1.1:123]:
        ICMP: 0ms delay
        NTP: +0.0000000s offset from DC1.domain.local
            RefID: 'LOCL' [0x4C434F4C]
            Stratum: 1
    DC2.domain.local[192.168.1.2:123]:
        ICMP: 0ms delay
        NTP: -110.4925481s offset from DC1.domain.local
            RefID: (unspecified / unsynchronized) [0x00000000]
            Stratum: 0
    DC3.domain.local[192.168.2.1:123]:
        ICMP: 0ms delay
        NTP: -0.0256084s offset from DC1.domain.local
            RefID: DC1.domain.local [192.168.1.1]
            Stratum: 2
    DC4.domain.local[192.168.2.4:123]:
        ICMP: 0ms delay
        NTP: -0.0011524s offset from DC1.domain.local
            RefID: 80.84.77.86.rev.sfr.net [86.77.84.80]
            Stratum: 2
    Warning:
    Reverse name resolution is best effort. It may not be
    correct since RefID field in time packets differs across
    NTP implementations and may not be using IP addresses.
    Any help would be much appreciated. Thanks. 
    Craig Brand

    I suspected some issue with AV so uninstalled. 
    To resolve the Access Denied I followed these steps: 
    stop w32time
    w32tm /unregister
    reboot
    regsvr32 /u w32time.dll
    w32tm /register
    sc query w32time -- you should see that the service is set to
    shared mode -- this is presumably how it should be -- if you try to start right now, you'll get the expected 1290 SID-related error
    reboot
    w32time should now automatically start at boot up and be running -- that was my result -- it's running as shared, started on its own, and I can do the w32tm /query commands successfully
    After rebooting the time service started. 
    I then repeated the steps: 
    net stop w32time
    w32tm /config /syncfromflags:manual /manualpeerlist:"0.pool.ntp.org, 1.pool.ntp.org, 2.pool.ntp.org"
    w32tm /config /reliable:yes
    net start w32time
    w32tm /query /configuration 
    And all worked. I'll wait a short while to see if this fixes the issue. I also have am SA case with MS so will confirm fix when resolved. 
    Craig Brand

  • Converting UNIX time stamp to local time using T- SQL

    Hi All,
    I am getting DateTime in UTC time (UTC time (Coordinated Universal Time or Greenwich Mean Time))  using (datediff(ss, '1/1/1970', current_timestamp)) . I want to Convert this in my Local DateTime (CST DateTime). How to achieve this in simple way in T-SQL.
    thanks,
    Venkat

    Imports System.Data.SqlTypes
    Imports System
    Imports System.Data
    Imports System.Data.SqlClient
    Imports Microsoft.SqlServer.Server
    Partial Public Class UserDefinedFunctions
        'Microsoft.SqlServer.Server.SqlFunction(IsDeterministic=false)
        <SqlFunction()> _
        Public Shared Function displayLocalTime(dt As SqlDateTime) As SqlDateTime
            If (dt.IsNull) Then
                Return dt
            End If
            Return TimeZone.CurrentTimeZone.ToLocalTime(dt.Value)
        End Function
    End Class
    Apply it to SQL Server and use in SELECT statement
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Convert Data time stamp to Local Time

    Hello,
    I want to convert this input to local time EST.
    Input:12/8/2006 10:23:00.000000000 PM -06:00
    o/p: EST.Local Time

    Is the input a string? A timestamp? If so, which flavor of timestamp? Something else?
    Normally, you'd want to use a TIMESTAMP WITH LOCAL TIME ZONE data type for this sort of requirement, since it automatically converts data to the client's time zone. Assuming the input is a string and that the client's time zone is set to EST
      1  select cast(to_timestamp_tz( '12/8/2006 10:23:00.000000000 -06:00',
      2                               'MM/DD/YYYY HH24:MI:SS.FF TZH:TZM' )
      3                AS TIMESTAMP WITH LOCAL TIME ZONE)
      4*   from dual
    SCOTT @ nx102 JCAVE9420> /
    CAST(TO_TIMESTAMP_TZ('12/8/200610:23:00.000000000-06:00','MM/DD/YYYYHH24:MI
    08-DEC-06 11.23.00.000000 AM
    Elapsed: 00:00:00.01
    SCOTT @ nx102 JCAVE9420> Justin

  • Converting UTC time stamp to local time (CET)

    Is there a smooth way to convert a time stamp from UTC time into the local time (e.g. CET)?
    CONVERT TIME STAMP.... Just converts the timestamp from local time zone to UTC, is there another comand to perform the opposite conversion?
    TIA!
    /Armin

    Hi Armin
    The statement does not only convert from local time zone to UTC you can specifiy any timezone:
    CONVERT TIME STAMP time_stamp TIME ZONE tz
            INTO [DATE dat] [TIME tim]
            [DAYLIGHT SAVING TIME dst].
    The following statement can also be used to convert from date time to timestamp.
    CONVERT DATE dat [TIME tim [DAYLIGHT SAVING TIME dst]]
            INTO TIME STAMP time_stamp TIME ZONE tz.
    Regards
    Faaiez

  • ABAP statement for converting UTC date/ time to local date/time

    Hi
    Is there any abap statement or any function module in BW which converts UTC date and UTC
    time into local date and local time according to specific country.
    Regards,
    Kate

    Hi,
    and to convert the country to a timezone first use: TZ_LOCATION_TIMEZONE
    /manfred

  • Convert system time into User local time.

    Hi,
    How to convert System time into User Local time.
    Are there any FMs available.
    Regards,
    Kiran

    hi,
    There is just one simple funda behind the Date and time logic in SAP.
    -> It is absolutely useless to store Date and time directly in DB. Why ?
    Because 00:00 a.m in London could mean 05:30 in India !! So If I (in India) store a Date 1st Feb 2008 , 10:00 a.m .. This time for a person in London could be invalid.. because he is behind your time zone..
    So the solution is to store the date/times in Timestamps format. Taking the above example.. 1st Feb 2008, 10:00 a.m (in India) will be stored as 20080201043000.
    This time if seen in German Time zone will look as : 1st Feb 2008, 05:30 a.m.
    Simple right
    -> In India we store date as DD.MM.YYYY while in other countries they store it as MM.DD.YYYY.
    The separator could be . or - or / .
    The date format is user dependent. I might prefer to store it as DD.MM.YYYY and you might want to store it as MM-DD-YYYY.
    System does not bother what your format is. It always stores in YYYYMMDD (8 Char)
    On screens if you want to display Date then it must always be shown in that users format who is seeing it. How to get this done ?
    DATA : lv_date(10) type c.
    write sy-datum into lv_date.
    So in LV_DATE variable the date will be stores in the users format.
    Simple right
    There are function modules that do the same. But normally we should avoid use of FM to make code simpler, short and easy... no complications at all ..
    You can use system variables sy-datlo (Local Date for Current User) and sy-timlo ( Local Time of Current User ).
    You can also use GET TIME statement.
    reward if useful,
    preet

  • Converting old server time check batch file to PowerShell

    Hi Guys,
    I have batch file that checks the offset between our time servers and two external ones.  This batch file works in XP, but not in Windows 7 pro.  Where it breaks down is it doesn't display the offset correctly.  Can this batch be converted
    to Powershell, so that it would be compatible?  Here is the batch code:
    CLS
    @ECHO OFF
    @ECHO.
    @ECHO.
    @ECHO ************************* Time Checking Script *************************
    @ECHO *** Check the offset between government time server, our internal
    @ECHO *** time server and domain controllers.
    @ECHO.
    @ECHO *** time.nist.gov:
    @w32tm /monitor /computers:time.nist.gov /domain:cooley-dickinson.org |FIND "offset"
    @ECHO.
    @ECHO *** time.cooley-dickinson.org:
    @w32tm /monitor /computers:tock.usno.navy.mil /domain:cooley-dickinson.org |FIND "offset"
    @ECHO.
    PAUSE
    @ECHO.
    @Net Time \\server1 | find "Current"
    @Net Time \\server2 | find "Current"
    @Net Time \\server3 | find "Current"
    @Net Time \\server4 | find "Current"
    @Net Time \\server01 | find "Current"
    @Net Time \\server02 | find "Current"
    @Net Time \\server03 | find "Current"
    @Net Time \\server04 | find "Current"
    @Net Time \\server05 | find "Current"
    @Net Time \\server06 | find "Current"
    @Net Time \\server07 | find "Current"
    @Net Time \\server08 | find "Current"
    Below is the output we get from the batch file in Windows 7.  Where it says delayoffset, is normally where the offset is in seconds.
    *** time.nist.gov:
    Analyzing:Analyzing:Analyzing:Analyzing:Analyzing:delayoffset from DC01.coole
    y-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    *** time.cooley-dickinson.org:
    offset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    delayoffset from DC01.cooley-dickinson.org
    The rest of the script displays the date/time for individual servers correctly.  If this could be converted to powershell, it would be a whole lot easier to deal with.
    Thank you!
    Larry

    Hi Bill,
    My main concern is getting a means script-wise to mimic the functionality of the batch I posted.  The syncing has never been an problem for our engineers (that I know of).  The batch is but a task we can only run on xp, so I wanted to be able to
    try to migrate the task over to windows 7.  If the task is outdated and unnecessary, as I told jrv, I'll suggest that it is to the sys admin.  To me it is a scripting question, I'm a programmer at heart and look to find ways of automating tasks with
    code.  I'm new to Powershell and not experienced with system architecture design. 
    Thank you!
    Larry
    Again - there is no way to do what you are asking. w32tm is the only utility that matches time but you are not using it correctly.  You are reporting the offset but not the delay.  The only accurate way to test sync quality is by running a tape. 
    This is a function of w32tm.   THe tape will show you the variance over time.  The other way I have used is to set the time service to generate a log and scan the log.
    Win32_UTCTime will tell you the time at remote servers but it cannot tell you the network delay.
    If you are only interested in matching seconds then you can use it as well as the w32tm query that returns network time.  These can be extracted and converted into time objects.
    As an exercise to learn PowerShell this could be useful.  Just capture the output of w32tm and parse it in PowerShell.
    See the "Learning" resources on this site for examples.
    You should also use your search engine to learn more about what is available and how it is used.
    A simple search for me returned this:
    http://gallery.technet.microsoft.com/scriptcenter/Get-Network-NTP-Time-with-07b216ca
    There are many more things available including GUIs that report in real time.
    You desktop guys need to get out more often.  Learn to use computers.  They can be very helpful.  Stop plating with hardware.  Desktop support will be gone within a few years as we move to the cloud.  Only application support will
    remain.  The classic PC and member server are pretty much obsolete.
    ¯\_(ツ)_/¯

  • Does os x server create inconsistent local backups of files created as a result of a client's time machine backup?

    some definitions for clarity:
    "TM Server" means the Network Service by which clients back up their files to the server.
    "TM Client" means the local Time Machine backup process that saves the server's files to a USB drive
    If I have a Server "A", and clients, "B" and "C".
    "A" offers itself as a TM Server backup destination, saving to
    /Volumes/Backup1/
    /Volumes/Backup2/
    "B" and "C" clients rotate between Backup1 and Backup2 as their backup destination, over the network, so
    /Volumes/Backup1/b.sparsebundle and c.sparsebundle exist (as well as in Backup2)
    "A" backs itself up through its TM Client to a USB3-attached drive at
    /Volumes/USB1
    Which has the usual .backupdb files.
    A's backups include the data on the "Backup1" and "Backup2", which have the sparsebundles.
    The question is:
    1. Is A's TM Client aware of the TM Server, so only saves the .sparsebundle bands to the .backupdb once the TM Server has finished accepting a client backup
    OR
    2. does the TM Client run concurrently with the TM Server such that it writes the .sparsebundle bands to the .backupdb in an inconsistent state:
    Ex:
    Server and Client have copies of a file. Server has a previous content with 'AA' and begins a backup.
    Halfway through the server's backup, the client starts writing to the server with new content, 'BB'
    Scenario 1: TM Server waits until local backup is complete:
    Client:|-------------------BB[===Backup===]BB-|
    Server:|-AA[===Backup===]AA-------------------|
    Scenario 2: TM Server is allowed to write while backup happens
    Client:|-----------BB[===Backup===]BB-|
    Server:|------AA[===Backup===]AB------|
    Scenario 2 obviously leaves the local backup in an inconsistent state.
    DOES OS X SERVER CREATE INCONSISTENT LOCAL BACKUPS OF FILES CREATED AS A RESULT OF A CLIENT'S TIME MACHINE BACKUP?

    See if anything in C 12 helps. Airport Utlity 5.6 will not run in Mavericks.
    Time Machine Troubleshooting
    Time Machine Troubleshooting Problems

  • Time difference between local time and server time

    Hi Guys,
    I am currently experiencing a time difference of 40 minutes between the local time and the current server time.
    The local time seems to be 40 minutes slower than my current time.
    Path for Local Time : CMC -> home -> servers -> input.file repository sever -> metrics tab.  (Under the category of Installed on machine peacok, there is a local time.
    Question is how can i sync the local time with my current server time?
    Let me know if more info is required.
    Rgds
    Collin

    Hi Collin,
    Under  CMC >Home >Input FRS , the local time shown is current time of BO Server.
    Since CMC is web-based, any date, time value will be coming from BO Server box.
    u2022     In case your system and BO server is in same time zone  then update the date-time of BO Server
    u2022     In case your system and BO server is in different time zone then check with IT team to figure out the BO Server will be maintained in which time zone.
    u2022     If current requirement is specific to some report then you can add 40 min in all date value in report to get the desired result.
    Thanks,
    Sushil

  • System Time and Local Time

    Hi all,
    Our system are config to have a different time zone with the system time. Just wondering what type of fields will take the local time and which type will take system time. We found that dates like document date/time will take local time but created by date/time will take system time. Why is this so?
    We know that for job scheduling will run at system time. Is there a way to let the system know to run at the local time? Users find it very troublesome to adjust the timing.
    Rewards will be given to useful answers. Many thanks.
    Regards,
    Janet

    Hi,
    I found this info in one of the SAP sites i found this may be useful to you.
    The easiest way to prevent any time zone problems is to run everything with UTC (formerly GMT - Greenwich Mean Time). But while it’s a good idea for servers, end users will most likely complain about being confused (my family doesn’t - my home systems are on UTC to prevent the hassles with summer/winter time). And if you implement SAP using local time on the server, while your users are in different time zones, things can get slightly complicated. Just try searching in OSS with search term “sy-timlo”.
    The main problem is that some fields in SAP are stored as server local time (and date), while others use user’s local time. In general, as SAP explains in many OSS notes, any date/time that is written by the system is server local time, and any date/time that can be manually entered by users is in respective user’s time zone. To help us even more, the time zone used is not stored in documents, but only in user profile, so to be really sure which time is meant, one has to find the user who did the data entry or update, and then find the time zone and do conversion if necessary. SAP gives a good example in OSS note 636992. There, a user sitting in Japan creates a notification about, for example, machine breakdown, entering local time. Several hours later, a colleague in Germany looks at the notification and thinks that the machine has been down only a few moments, while it’s actually several hours!
    Things are enough confusing if you are analysing some problem by looking at the data. And if you are creating documents (material movements, accounting postings or production order confirmations) from ABAP programs with, for example, BAPI functions, you have to be especially careful because the system will run checks on date and time fields, with different logic. In general, the posting date (BUDAT or, as in BAPIs, POSTG_DATE) and several date/time fields like EXEC_START_DATE, EXEC_START_TIME, EXEC_FIN_DATE, EXEC_FIN_TIME, EX_CREATED_DATE/TIME in confirmations in the BAPI function BAPI_PRODORDCONF_CREATE_TT are your local date and time. While creating order confirmations, the system will check the date/time against the user local date and time and will prevent creating confirmations in the future. In contrast to PP, the BAPI to create a goods movement - BAPI_GOODSMVT_CREATE - assumes that posting date is a local date, but doesn’t complain if it’s in the future. The potential problems can be hard to find and detect: if you have small time differences, the posting date can differ only during one-two hours per date - only then you will get an error when posting an order confirmation. For all those fields mentioned above you should normally use the system fields SY-DATLO and SY-TIMLO if they have to be populated with current date and time. If the data is provided by an external system, then either the system has to care about the correct time, or your ABAP program has to do time zone conversion.
    In certain situations you can assume that if a document is being created for some plant, then the current server time can be converted into local time of the plant, if you know the time zones of both. The server’s time zone, or more exactly, its difference with UTC, can be found in the system variable SY-TZONE. To find the time zone of a plant, you can use the logic that can be found in the function CO_R0_SET_LOCAL_DATE_AND_TIME.

  • How to convert epoch time to datetime in sql*loader Oracle

    Hello,
    I wan't to question how to convert epoch time to datetime in sql*loader Oracle. I try this script for convert epoch time to datetime in sql*loader, but error:
    Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    This is my loader:
    LOAD DATA INFILE 'C:\Documents and Settings\Administrator\My Documents\XL_EXTRACT_211\load.csv'
    into table TEMP_TEST_LANGY append
    FIELDS TERMINATED BY ','
    TRAILING NULLCOLS
    DATADATA CHAR "TO_DATE('01-JAN-1970','DD-MON-YYYY')+:datadata/86400"
    This is my csv file:
    79314313.7066667
    79314336.2933333
    79314214.3466667
    This is my table:
    CREATE TABLE TEMP_TEST_LANGY
    DATADATA DATE
    Thanks
    Edited by: xoops on Sep 21, 2011 8:56 AM
    Edited by: xoops on Sep 21, 2011 8:58 AM

    thanks for your answer, but I asked to use sql loader instead of the external table, which so my question is why can not the epochtime converted to datetime, if there is no way to convert a datetime epochtime using sql loader, so I'm required to use the external table. thank you.
    This is my error log:
    Column Name Position Len Term Encl Datatype
    DATADATA FIRST * , CHARACTER
    SQL string for column : "TO_DATE('1-Jan-1970 00:00:00','dd-MM-YYYY hh24:mi:ss') + (:DATADATA/60/60/24)"
    Record 1: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 2: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Record 3: Rejected - Error on table TEMP_TEST_LANGY, column DATADATA.
    ORA-01722: invalid number
    Edited by: xoops on Sep 21, 2011 12:33 PM

  • Connection to server times out

    Hi, I know I've seen somewhere that you can set how long before your connection to your remote server times out in DW. After a few minutes of editing files, and then when I go to upload them to my host, It takes forever just to make a connection. I used CS3 for a while, then upgraded to CS5. CS3 didnt seem to have this issue.
    Another issue I seem to have is when I DO put files to my remote, sometimes the files dont seem to reflect changes I made. For instance, I added an id attribute to a firm field, uploaded my file to the remote, hard refreshed my browser viewing the same page and viewed source. The form field id was not there! So I clicked the expand local and remote files button and pulled the file over to the remote manually!
    Maybe these are issues with my hosting company? Anything I can do to ensure my remote connection stays connected, at least for an extended period of time if not indefinately. Thanks in advance!

    Hi Nancy, thats for the tips and info. I've tried most of what you suggested. One thing I never thought about though was toggling passive mode on and off. For some reason I just always assumed this should be on by default. So I will try that and see how it goes over the next day or so.
    Also the FTP optimize performance was checked. Seems like I had an issue with this a while back, so I unchecked it as well.
    Now the other issue of why updated files arent showing up on my remote. Yes I always use ctrl+F5 to refresh my browser. Again, this morning when I did that very thing, and then viewed source, the updated code was not there. The code I am referring to was about 20 lines of javascript that was showing in dw code view, but not in ff source view. So not sure about that one. As you said its possibly my host provider. Thanks again!

Maybe you are looking for

  • How can I make adjustments in MOMENTS view

    When I choose the top most Photos icon in the side bar, the moments view is evident.  My photos are grouped by day dates.  This makes is very difficult to locate photos known to be within a certain month or even year.  As I scroll down through the li

  • Testing a webservice in CE 7.1EHP1 WS Navigator

    Hi, We are testing a webservice : Create Document (WSDL : http://<host Name>:<Port_name>/sap/bc/srt/xip/sap/ECC_DOCUMENTCRTRC?sap-client=100&wsdl=1.1) using Web service Navigator on CE 7.1 EHP1. The error message we get in the result is  "Exactly-onc

  • How do I get facebook notification sounds to stop?

    I have an iPhone 5.  I have disabled sounds for Facebook under Settings>General>Facebook and under Settings>General>Notifications>Facebook, but I keep getting sounds.  The sounds occur even with the iphone switch set to no sound and the volume at the

  • Warning message when cliking on "montage" on a French version

    Hello I'm using Imovie 6HD with Imovie 7.1.4 on my HD. When I try to add transition on my projet, I've got these warning message : Le module Circle transitions est defectueux. Circle transition module is not good, same message for Flash, ghost trails

  • Inserting data takes long time

    Hi, when I am insterting data in my application it's took very long time. can anybody tell me where is the problem why it's taking very long time. Thanks in advance