My file and folder timestamps are showing the wrong time

Page 2 of 3 FirstFirst 123 LastLast
  1. bro67's Avatar
    Posts : 8,350
    Mac OS Catalina
       #11

    Did you change time servers in Regional Settings? Also make sure that you have the correct GMT, since Windows shows a few different ones. The clock should not drift and unless you are running mission critical programs that need to know the exact time, there are going to be some problems. Change the time server until you see it update to the correct time.
      My Computers

  2. lx07's Avatar
    Posts : 5,479
    2004
       #12

    You can also set Windows to use UTC instead of local time. This is done by setting this
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]
         "RealTimeIsUniversal"=dword:00000001
    It will cause as many problems as it fixes though. NTFS filesystem timestamps are always be UTC. Your camera picture EXIF data will always be local. Windows programs will be mix of local and UTC depending who wrote them and when (7-Zip uses UTC by default but you can change it).

    As you can see from cmd vs powershell even MS is not consistent.
      My Computer

  3. bro67's Avatar
    Posts : 8,350
    Mac OS Catalina
       #13

    Run the following and post the output to a message, not an attached file.

    w32tm /query /configuration
    w32tm /query /status
    Time /T

    If you wish to set your system up for a higher time accuracy, see the following. Configuring Systems for High Accuracy | Microsoft Docs
      My Computers


  4. Posts : 41
    Windows 7
    Thread Starter
       #14

    bro67 said:
    Did you change time servers in Regional Settings? Also make sure that you have the correct GMT, since Windows shows a few different ones. The clock should not drift and unless you are running mission critical programs that need to know the exact time, there are going to be some problems. Change the time server until you see it update to the correct time.
    The time on the Registry settings is "GMT Standard Time". The clock drifts (become slow) because of some fault with the battery or something, it's only happened on my current computer.

    I set the Internet Time server to "time.nist.gov", but it will synchronise tomorrow in the early hours.
    bro67 said:
    Run the following and post the output to a message, not an attached file.

    w32tm /query /configuration
    w32tm /query /status
    Time /T

    If you wish to set your system up for a higher time accuracy, see the following. Configuring Systems for High Accuracy | Microsoft Docs
    Where do I run those commands? If you mean use Win+R, then they disappear in a fraction of a second.
      My Computer

  5. bro67's Avatar
    Posts : 8,350
    Mac OS Catalina
       #15

    In cmd.exe as always. You need to open a Command Window.
      My Computers


  6. Posts : 41
    Windows 7
    Thread Starter
       #16

    I thought it was CMD, but I previously had an "access denied" message, so this time I ran it as Administrator:

    Code:
    C:\WINDOWS\system32>w32tm /query /configuration
    [Configuration]
    
    
    EventLogFlags: 2 (Local)
    AnnounceFlags: 10 (Local)
    TimeJumpAuditOffset: 28800 (Local)
    MinPollInterval: 10 (Local)
    MaxPollInterval: 15 (Local)
    MaxNegPhaseCorrection: 54000 (Local)
    MaxPosPhaseCorrection: 54000 (Local)
    MaxAllowedPhaseOffset: 1 (Local)
    
    
    FrequencyCorrectRate: 4 (Local)
    PollAdjustFactor: 5 (Local)
    LargePhaseOffset: 50000000 (Local)
    SpikeWatchPeriod: 900 (Local)
    LocalClockDispersion: 10 (Local)
    HoldPeriod: 5 (Local)
    PhaseCorrectRate: 1 (Local)
    UpdateInterval: 360000 (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: 32768 (Local)
    Type: NTP (Local)
    NtpServer: time.nist.gov,0x9 (Local)
    
    
    NtpServer (Local)
    DllName: C:\WINDOWS\system32\w32time.dll (Local)
    Enabled: 0 (Local)
    InputProvider: 0 (Local)
    
    
    
    
    
    
    C:\WINDOWS\system32>w32tm /query /status
    Leap Indicator: 3(not synchronized)
    Stratum: 0 (unspecified)
    Precision: -23 (119.209ns per tick)
    Root Delay: 0.0000000s
    Root Dispersion: 0.0000000s
    ReferenceId: 0x00000000 (unspecified)
    Last Successful Sync Time: unspecified
    Source: Local CMOS Clock
    Poll Interval: 10 (1024s)
    
    
    
    
    C:\WINDOWS\system32>Time /T
    20:21
      My Computer

  7. bro67's Avatar
    Posts : 8,350
    Mac OS Catalina
       #17

    You can always change your time server, since you are across the pond. There is time.google.com that you can use, since they have locations all over the globe. See this how to change the NTP server. https://support.microsoft.com/en-us/...windows-server This explains more about how Google keeps things in sync with their time servers. Official Google Blog: Time, technology and leaping seconds How to setup multiple NTP servers in Windows. How to configure multiple NTP network time servers on a Windows client - Ctrl blog
      My Computers

  8. Berton's Avatar
    Posts : 10,506
    Win10 Pro Versions 2004 and 2009/20H2, Win10 Pro IP_Dev, Win10 Home 1909
       #18

    Foebane72 said:
    I just checked and found that UTC is exactly the same as GMT.

    The screenshots I took above are from local GMT time, so why are they off by one hour?
    Right, GMT/Greenwich Mean Time was renamed to UTC/Universal Time Coordinated [or more commonly called Coordinated Time Universal] by a large conclave many years ago, just a few years after I started my career. GMT is named for the Greenwich Observatory in England as it was the closest landmark to the 0 Longitude line.
    UTC – Coordinated Universal Time
      My Computers


  9. Posts : 41
    Windows 7
    Thread Starter
       #19

    bro67 said:
    You can always change your time server, since you are across the pond. There is time.google.com that you can use, since they have locations all over the globe.
    I changed this, but there's no alteration to the timestamps. I tried that trick with DIR on both PowerShell and Cmd, but they remain separated by one hour.

    If I can't solve this problem, I guess I'll just have to live with it.
      My Computer

  10. bro67's Avatar
    Posts : 8,350
    Mac OS Catalina
       #20

    That is because timestamps can be set by the program, not the OS. There are three ways that the timestamp can be shown. Is Windows showing the wrong date for files in Explorer?

    This can better explain about timestamps.

    "The time zone is an artefact of conversion from "instants" to a human-readable date-and-time in some calendar.
    Computers do not like human-readable formats (not as much as humans, at least), so they usually store instants in a zone-neutral format. For instance, in the NTFS file system, time stamps are stored in UTC.
    Hence, the file time modification is stored properly as long as whoever modifies it knows the current time. If your Windows system displays "13:19" and believes to be in the GMT-5 time zone, then it infers that the current instant is "18:19" in UTC, and writes as much in the NTFS entrails. However, if the OS displays "13:19" but believes to be in the GMT+3 time zone, then the OS is off by eight hours, even if, for the human looking at the screen, things seem fine.
    Another point is that the file modification time is a property of the storage system in which the file is stored, e.g. a file system. When a file is "sent", then that time does not necessarily travels with it. Some archive formats (e.g. Zip) embed the file modification time along with the file. This does not apply to a file sent "as is", attached to an email, will not come with a file modification time."
      My Computers


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:56.
Find Us




Windows 10 Forums