Belle: File dates ignore time setting (uses GMT)

I've come to discover that the device uses GMT in relation to file creation / modification dates and ignores the time zone setting. I was kept unaware of this by being able to use Nokia Multimedia Transfer to import camera files to iPhoto. Having to connect USB in Mass Storage mode reveals this limitation. However I am not at all sure if this was the case prior to Belle, though I assume so.
Seems like a oversight in the core of the OS, but if not please fix this. The time zone setting should be more than cosmetic. File dates should not be disregarded on a device that can handle as many files and file types as modern smartphones (N8-00 here) can. It *is* important.
Also, update all your software for Macintosh while you're at it, please.
TIA!

Thanks for the answer, I read everything except the man page for mktime :-(
Well I can't remember where I read that about "gmtime" but you are right:
I will use gmtime instead of mktime and it works, it converts it to a GMT time.
Thanks again for your precious help.
Cheers,
Gilles

Similar Messages

  • How to get the most current file based on date and time stamp using SSIS?

    Hello,
    Let us assume that files get copied in a specific directory. We need to pick up a file and load data. Can you guys let me know how to get the most current file based on date and time stamp using SSIS?
    Thanks
    thx regards dinesh vv

    hi simon
    i excuted this script it is giving error..
       Microsoft SQL Server Integration Services Script Task
       Write scripts using Microsoft Visual C# 2008.
       The ScriptMain is the entry point class of the script.
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    namespace ST_9a6d985a04b249c2addd766b58fee890.csproj
        [System.AddIn.AddIn("ScriptMain", Version = "1.0", Publisher = "", Description = "")]
        public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
            #region VSTA generated code
            enum ScriptResults
                Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
                Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
            #endregion
            The execution engine calls this method when the task executes.
            To access the object model, use the Dts property. Connections, variables, events,
            and logging features are available as members of the Dts property as shown in the following examples.
            To reference a variable, call Dts.Variables["MyCaseSensitiveVariableName"].Value;
            To post a log entry, call Dts.Log("This is my log text", 999, null);
            To fire an event, call Dts.Events.FireInformation(99, "test", "hit the help message", "", 0, true);
            To use the connections collection use something like the following:
            ConnectionManager cm = Dts.Connections.Add("OLEDB");
            cm.ConnectionString = "Data Source=localhost;Initial Catalog=AdventureWorks;Provider=SQLNCLI10;Integrated Security=SSPI;Auto Translate=False;";
            Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
            To open Help, press F1.
            public void Main()
                string file = Dts.Variables["User::FolderName"].Value.ToString();
                string[] files = System.IO.Directory.GetFiles(Dts.Variables["User::FolderName"].Value.ToString());
                System.IO.FileInfo finf;
                DateTime currentDate = new DateTime();
                string lastFile = string.Empty;
                foreach (string f in files)
                    finf = new System.IO.FileInfo(f);
                    if (finf.CreationTime >= currentDate)
                        currentDate = finf.CreationTime;
                        lastFile = f;
                Dts.Variables["User::LastFile"].Value = lastFile;
                Dts.TaskResult = (int)ScriptResults.Success;
    thx regards dinesh vv

  • How to get local file date and time ( 10g version )

    Hi,
    Would like to ask if there is any way to get the date and time of a local file. It seems that webutil does not have this function.
    And I want to use client_host ( dir c:\file.txt > c:\temp.txt ) and the read this file to get the file date.
    But the problem is the file date and time ( in the dir ) varies in different PCs.
    Best Regards,
    Ivan

    But the problem is the file date and time ( in the dir ) varies in different PCs.
    You mean the format of the date and time don't you?
    If so you maybe could create a java bean which does that for you using the lastModified Method of the File class.
    regards

  • My app store is saying i have to change date and time setting to get a secure connection but the date and time are correct please help?

    My app store is telling me i have yo change date and time setting to download apps and idk what is wrong cause date and time are correct

    Is the Time Zone also correct?
    Also see:
    Can't connect to the iTunes Store

  • How can I  get System dates  with time scheduler using threads

    how can I get System dates with time scheduler using threads.is there any idea to update Date in my application along with system Date automatic updation...

    What the heck are you talking about and whatr has it to do with threads?
    Current time: System.currentTimeMillis. Date instances are not supposed to be updated.

  • Work Status Report Date and Time Setting

    Hi all
    We are running BPC10 on servers configured with Central European Time which is currently 2 hours ahead of GMT allowing for Daylight Savings Time.
    From what i can see in BPC10 date and times are now stored in GMT (Zulu time) in the Audit activity tables so when a user updates the work status at say 11:00AM local CET time then a value of 09:00AM GMT is stored in the Audit Activity Header table.
    We have a report in excel that uses the EVLCK formula and will return the correct value of 11:00 am however if we run the Work Status Audit report on the Planning and Consolidation home page with user preferences set to Central European Time +1 then the time is displayed as 10:00am suggesting that daylight savings time is not accounted for. We need to set the time to Eastern European time +2 hours to display the correct figure.
    Can anyone explain why this happens? Has DST been overlooked?
    Rgds
    Alan

    Hi Alan,
    probably it's a bug, I think it's better you open an OSS message to SAP.
    Regards
         Roberto

  • Integrating Flat File data to LDAP Directory using sunopsis driver

    Hello
    I need to import data from a csv file into a LDAP Directory.
    In order to acheive this, i used Demo physical and logical File data server (called FILE_GENERIC) and set up a new LDAP data server using tutorial "Oracle Data Integrator Driver for LDAP - User's Manual".
    I can manually see and update data on both file and LDAP datastores.
    The fact is that i cannot manage to import/update data from the file to the LDAP directory through a dedicated interface.
    The issue do, i think, come from the PK/FK used by sunopsis relational model to represent the directory.
    LDAP DN is represented by a set of two table representing in my example the organizational units in one hand and the persons in the other hands, linking them through FK in persons to auto-generated PK in organization units. My person table also have a auto generated PK. All the directory datastore tables have been reversed through ODI.
    In my interface, i always use my cn as update key.
    I first tried not to map the person PK in the interface, letting the driver generating it for me (or mapping a null PK). I then catch in operator a message like: " null : java.sql.SQLException: Try to insert null into a non-nullable column".
    Anyway, the first row is created in the directory and a new PK is given into ODI datastore. Curiously, this is not as i would presume the last PK value + 1.
    There are some kinds of gaps in the ID sequences.
    I even tried checking the "tolerated error" into the IKM step called "Insert new row". I'm using IKM shipped with ODI :"IKM SQL Incremental Update". The sequence is finished in operator but due, i guess, to the catched error, the other rows are not processed. (Anyway i shouldn't have to tolerate errors)
    I tried after to put not used custom PK values into my file, then map the PK column to the LDAP datastore PK column without much success: Only one row is processed. Futhermore, the id of the PK in the datastore is different of the one I put in the file.
    I finally tried to generate PK values through SQL instructions by creating new steps in the IKM modul but that did not worked much.
    I really do not see any other ideas to either have the driver construct new PK at insert/update or to make him ignore the null PK problem and process all the rows.
    If anyone do have an idea about it, please share...
    Greetings,
    Adrien

    Hi,
    I am facing an issue who is probably the same.
    using ODI 10.1.3.5, I can't insert new rows into my openLDAP.
    One of the point I see is that the execution take the LDAP server for staging area and want to create I$ table into it, so the data are already imported into the ldap Server.
    thanks for any help.

  • Lightroom changes file date and time

    When I imported a large number of images to Lightroom, keeping the files in their original location, the dates and times of the files were updated. This is a bit of a pain because it means that about 4000 files will now be backed up again to the online backup service I use. Why does LR change the filedate when all it's doing is importing to the library?

    > Alexander wrote: I believe you have set the option to "Automatically write changes into XMP" and are working with non-raw files (jpeg, tiff or dng)? In this case it is the expected behaviour as LR will write any metadata changes right into the files, thus changing the modification date of the image files.
    Either uncheck the above mentioned preference setting or beg Adobe to bring us back xmp side car files for jpeg, tiff and dng.
    No, I'm not stalking you :)
    The following applies to Macintosh OS X, 10.4.8. I don't know if the same happens with Windows.
    I had a similar problem when editing some JPEG file from my Fuji F30. When I would Export the metadata the 'Modified' date of the file changed as expected. However, for certain files, the 'Created' date also changed. I opened a case with Adobe, sent them a description of the problem and some sample files. The Technical Support person reproduced the behavior and passed the information to Engineering.
    Yes, Adobe, give us XMP files for all files.

  • Unable to insert date and time when using date datatype

    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    Thanks

    user633278 wrote:
    Hi
    I am hitting a bit of a problem when using the date datatype. When trying to save a row to the table where the field it throws an error ora 01830 and complains about converting the date format picture ends...etc. Now when I do the insert, I use the to_date function with the format of "dd-mon-yyyy hh24:mi:ss". Of course, when I remove the time element, everything is perfect.
    Checking sysdate, I noticed that the time element wasn't be displayed, and I used alter session set nls_date_format to set the date and time I want to save to the table, which worked!
    Then based on advice in a previous thread to permanently fix the problem, I used alter system set nls_date_format ="dd-mon-yyyy hh24:mi:ss" scope=spfile; This showed that it was altered, and I can see the setting in the em. In sqlplus, I shutdown the database, and restarted with startup mount; alter database open; and then selecting sysdate, it still shows the date as dd-mon-yy, and still no time! Checking the em, and looking up the nls_date_format the setting is still shown as "dd-mon-yyyy hh24:mi:ss".
    So, my question is this - what am I doing wrong? Why can't save date and time using date in Oracle 11g?????
    ThanksYou most certainly can save the time. A DATE column, by definition stores date and time. What you describe is a presentation problem, and setting nls_date_format at the system as an init parm is the weakest of all settings as it is overridden by several other locations.
    without seeing the exact sql that produced the error (not just your description of what you think you were doing) it is impossible to say for sure.
    However, I'd suggest you read http://edstevensdba.wordpress.com/2011/04/07/nls_date_format/

  • Ack file date and time format is same as in source xml format

    Hi...All,
    1) my scenario is file-rfc-file using BPM,
    we are getting file in xml format from source along with timestamp and this data will be going to R/3 and the acknowledgement (success or failure) file will be sending back to source system.
    in this sceneario we have to fulfill in the follwing client requirement
    File1.<same File1 date and time>.XML
    Is it possible to make it as the following? if it is possible
    could u please let me know how to fulfill the follwing requirement.
    ACK File1.<same File1 date and time>.XML
    Where <same File1 date and time> format = u2018YYYYMMDDhhmmssu2019 .
    2) Is the XML file name visible in the SAP-XI monitoring screen and will it help to trace the messages?
    thanks in advance,
    Pasi.

    Hi,
    I didnot under stand your first question coulf you be more specfic.
    2. Ans : In general , we will follow the below steps
    --First we we check for the file is picked or no, if not see the Sender side CC parameters like mode and path details
    --If file was picked then we need to check whether we are using the File content conversion parameters or not if yes we need to check the FCC parameters ,
    Goto RWB-Channelmonitoring by the following link
    http://host:port/mdt/channelmonitorservlet
    select the sender side CC name and check for errors
    If no errors in above, goto SXMB_MONI for Integration Engine xml processing , check for successful or error occured black or red color
    --if success in SXMB_MONI then we need to check in RWB as above channel monitor now select the receiver side CC
    If no errors then check for output file is placed intarget or not
    Please reward points if it helps
    Thanks
    Vikranth

  • The date and time setting go crazy[SOLVED]

    Hello,
    Each time, I boot up the time setting changes. Sometime two hours behind, sometimes five. Even if I set the time and date by using the "date -s" command or kde time setting feature when reboot the time changes.
    Any idea how to fix this for good?
    Thanks,
    jmak
    Last edited by jmak (2009-11-20 00:19:17)

    Thanks for all the suggestions.
    This what happened. From some strange reasons the system clock setting and the distro setting were different. The bios clock was two hours before the distro clock. I adjusted the bios clock to real time—to correct time thinking this will set the disto time to the correct time too. Rebooted and I was put on the commandline with an error message:"superblock last mount time Thu Nov 19 11:41:29 2009, now=Thu Nov 19 10::53:27 2009 is in the future"
    Then I entered the root password and did a "fsck" and rebooted. It booted up fine
    but the distro time setting was still wrong. Rebooted again and checked the bios clock and it was reset to the distro clock. Both were wrong but at least have the same settings. Then I boot up again and set the time to the right setting in KDE. Rebooted and checked the bios clock which was adjusted to the distro setting—in other words to the correct settings. Now the time is ok. So it seems that the bios setting depends on the distro setting. I thought it was the other way around.
    My computer is relatively new, 2 years old, so I dont think this was a battery problem. Also, I have other distros installed and I haven't experienced these kinds of problems with those distros.
    Lately, I experimented with a few distros on different partitions, and what I am suspecting is that those might reset the bios clock which caused the inconsistencies in Kde.
    jmak

  • How do I import photos from a memory card that didn't have the date and time set yet?

    Aloha,
    So I got a new 5dmark 3 and I was shooting a wedding and didn't set the date and time before I started shooting. When I uploaded the images to Lightroom they uploaded all over the place and not in order. Is there a way to upload to lightroom and keep them in order?
    THanks so much,
    Eric

    You can change the sort order to filename. That's what I prefer to use, and it keeps my images in shooting order.

  • File date and time

    how to retrieve the information about the date and the time of a file.
    I want to identify my files with
    filename + date.toString() + time.toString()
    It because some files may have the same name, but different date and time
    thanks in advance for it,
    Felipe

    File myFile = new File(path);
    long time = myFile.lastModified();
    // convert time to date and tme

  • NI unzip changes file date and time stamp

    A coworker this morning asked me about the NI-Unzip VI.
    It turns out that when the NI unzip VI unzips a file it changes the file dates to the date the file was unzipped.
    He also noted that NI-Unzip seems to be calling the Windows touch.exe to do this.
    The diagram for NI unzip is locked and password protected so his attemp to change this action blocked.
    Does anyone know a way around this? Either to make the NI Unzip stop changing the file date or the passwork to teh unzip vi?
    Message Edited by RTSLVU on 03-22-2010 08:01 AM

    Hi,
    I don't think NI will give you a password for it's protected functions...
    So you can:
    - use "System Exec" with a command line version of a ZIP tool of your choice to unzip files
    - make your own "Unzip" VI with calls to a "unzip"-DLL of your choice
    Choose the one that is easier to implement for you
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Wrong file date on time capsule

    Hi every body
    When I copy a file to time capsule the file will have a totaly wrong file date.
    What is there the problem?
    Cheers Andy

    Hi every body
    The issue is solved. I recognized that I don't have the problem from my macbooc. So I restarted the imac. And the issue was solved :-).
    Cheers Andy

Maybe you are looking for

  • Random internet connectivity problem

    My iMac mid 2011 running on OSX Lion keeps randomly dropping internet connectivity. Wi fi is viaa  time capsule and other devices still seem to connect no problem, it's so annoying any help please

  • Illustrator Preview Issues in Creative Cloud

    Some Illustrator files (the one I'm trying to use has multiple gradients) don't create a preview when uploaded to Cloud. Is this a known issue? Also, Cloud doesn't recognize, Illustrator layers as it does with Photoshop and Indesign. Will that featur

  • Duplicate material code

    Hi MM Experts, Let me know how to avoid duplicity of material based on material descrition? I want that whenever new material is created we should have tool to check based on the material description to avoid duplicity. Thnx AC

  • Adobe myth on nondestructive editing!!!

    Recently shifted from RAW+XMP combination (when it was easy just to kill XMP) to DNG format in CS3. Unfortunately discovered that crop or retouch actions under ACR4.1 with DNG files are NON REVERSIBLE. Lost several nice shoots :( Be careful!

  • Error code 80070005 after cyan update

    After cyan update, I cant sign in microsoft account in my lumia 520. There will be error code 80070005. Help me solve that problem. Solved! Go to Solution.