Bug 5337 - [resources] Problems with daylight savings time?
Summary: [resources] Problems with daylight savings time?
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: Other All
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
: 25469 26483 45576 45594 90114 90212 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-29 11:43 EST by DJ Houghton CLA
Modified: 2010-03-29 07:15 EDT (History)
10 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2001-10-29 11:43:29 EST
builds 20011018, 20011025.
OS: Win98/Win2K 

We have have problems when client machines are switched during Daylight Savings 
Time. This has happened to a bunch of users (all?) on Win98/Win2K and using 
builds 205/206.

Users of WinXP and Linux seemed to be OK.

When the workspace is started, all the resources appear to be out of sync with 
the filesystem. After you do a refresh local you are ok. But then you try and 
synchronize with the CVS repository and all your resources look like they are 
outgoing changes. Any resources which are really incoming changes from the 
server, are marked as conflicts.
Comment 1 John Arthorne CLA 2001-10-29 12:32:12 EST
I've placed a zip file on M:\accounts\johnart\public\target.zip, that contains 
the workspace I encountered the problem on.  I reproduced the problem on 
20011018 and 20011025 with this workspace.  I'm running FAT32 on Windows 2000.
Comment 2 Rodrigo Peretti CLA 2001-10-29 14:53:06 EST
The problem will only affect Windows users with FAT or FAT32 file systems. NTFS 
stores the lastmodified timestamp in UTC but FAT stores in local time. So, NTFS 
users are OK.
Comment 3 Rodrigo Peretti CLA 2001-10-30 12:49:37 EST
The exactly same behaviour happens when using java.io.File.lastModified() with 
the IBM JDK 1.3 (i.e. works as expected on NTFS and fails on FAT).
Comment 4 DJ Houghton CLA 2002-04-08 14:30:41 EDT
Problem description and workaround as posted to news.eclipse.org on 2002-04-05.
------------------------

There is a problem with daylight savings time which users may experience. 
These issues are outlined below.


Who will be affected:
=================
Users who run with their workspaces living on FAT file systems and have their 
system clocks automatically adjusted for daylight savings time.

Problem:
========
Both Core and CVS use the timestamps of the files on disk to represent the 
synchronization information (both local and remote) for resources in the 
workspace. As a result, some users will see strange behaviour after their 
local systems have adjusted their clocks for daylight savings time. 

Symptoms:
==========
1). All resources in the workspace will appear to be out of sync with the 
local file system.
2). When synchronizing with the CVS repository, all resources in the workspace 
will look like they contain outgoing changes. (a structure compare reveals 
that they haven't really changed)

Resolution:
==========
Work-around for problem #1:
Users must perform a "Refresh from Local" on all of their projects in their 
workspace.

Work-around for problem #2:
- In Windows, go into your Date & Time properties, click on "Time Zone", and 
un-check the "Automatically adjust clock for daylight savings changes" check 
box.
- Apply changes.
- Refresh from local on all projects in the workspace
- Team -> Synchronize with Repository. Note this should only show the changes 
which are "real"
- Release your changes.
- Change your time zone setting back.
- Refresh from local on all projects in the workspace
- Replace with -> Latest from Repository
Comment 5 DJ Houghton CLA 2002-05-23 16:12:17 EDT
See the following link for more info on the problem.
  http://support.microsoft.com/default.aspx?scid=kb;EN-US;q129574
Investigate options post-2.0
Comment 6 DJ Houghton CLA 2002-09-10 12:08:40 EDT
Reopening for investigation.
Either a solution or decision to README.
Comment 7 DJ Houghton CLA 2002-11-01 09:12:43 EST
*** Bug 25469 has been marked as a duplicate of this bug. ***
Comment 8 Michael Valenta CLA 2002-11-18 15:34:17 EST
*** Bug 26483 has been marked as a duplicate of this bug. ***
Comment 9 DJ Houghton CLA 2003-01-20 09:17:11 EST
Marking as README.
Comment 10 Andreas Heidrich CLA 2003-04-29 08:37:29 EDT
We are using several Win NT maschines here that run on Eclipse 2.1 and CVS. All 
Harddisks are NTFS formatted. We have the same behaviour weekly on one 
maschine. So I fear the problem is not only DST related. 

Andreas Heidrich
Comment 11 John Arthorne CLA 2003-04-29 13:41:48 EDT
Please open a new bug report if what you see is not related to daylight savings
time.  We don't plan on fixing the DST issue since it's really a problem with
FAT32 drives and is not a problem originating in Eclipse or even the java VM. 
Since all your drives are NTFS, you're likely seeing something else.
Comment 12 Andreas Heidrich CLA 2003-04-30 01:36:28 EDT
OK, I will do so. Thanks for the advice.
Comment 13 Michael Valenta CLA 2003-10-27 09:42:14 EST
*** Bug 45594 has been marked as a duplicate of this bug. ***
Comment 14 Nick Edgar CLA 2003-10-28 11:47:19 EST
*** Bug 45576 has been marked as a duplicate of this bug. ***
Comment 15 Michael Valenta CLA 2005-04-03 19:46:44 EDT
*** Bug 90114 has been marked as a duplicate of this bug. ***
Comment 16 Michael Valenta CLA 2005-04-04 13:47:24 EDT
I have created a utility action that will reset the timestamps so the files 
are in-sync with CVS. Be warned however that this utility resets the 
timestamps for any file whose timestamp differs from the sync timestamp by 1 
hour. There is a possibility that this could reset a file that is really 
dirty. Use at your own risk.

To use the action, install the plugin at the URL belog and them run the CVS 
Util/Fix Timestamps command.

http://dev.eclipse.org/viewcvs/index.cgi/platform-vcm-
home/plugins/fixtimestamps.zip
Comment 17 Michael Valenta CLA 2005-04-04 15:18:59 EDT
*** Bug 90212 has been marked as a duplicate of this bug. ***
Comment 18 Tanguy Mezzano CLA 2010-03-29 06:40:39 EDT
When adding your plugin to my Galileo installation, it will not be listed in the plug-in details and I don't get the Fix timestamps in the context menu.

In my target, I still find the plugin...
Comment 19 John Arthorne CLA 2010-03-29 07:15:39 EDT
The functionality from the "fix timestamps" plugin has since been integrated into the regular CVS plugin, and is performed automatically when you invoke Team->Synchronize.