Solved

Last Modified times on files

Posted on 2001-08-08
6
171 Views
Last Modified: 2010-04-25
When I change a file in Dreamweaver, it updates the "last modified" time correctly in the site window.  However, when I FTP the file (using DW) over to the remote site, it sets the last modified time back to some other time!  Usually, the time the file was created.  Sometimes (and I can't find a method to this), it's the time before the time the file was last modified.

How can I stop this?  Even if I look at the "last modified" times in Windows Explorer on my PC, they're wrong.  So DW is doing something -seriously- weird.

This is urgent.  A fix for this would be greatly appreciated.
0
Comment
Question by:Kat010897
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:kpsadan
ID: 6363547
I think it is showing the remote server time. Any way just paste the below code somewhere in your page and see the date what it is showing.

<script language = "JavaScript"><!--

 function makeArray() {
 for (i = 0; i < makeArray.arguments.length; i++)
   this[i + 1] = makeArray.arguments[i];
 }

 var modifiedMonth = new makeArray('January','February','March','April',
                           'May','June','July','August','September',
                           'October','November','December');

 var modifiedDate = new Date(document.lastModified);

 document.write('Last Modified : ' + modifiedMonth[modifiedDate.getMonth() + 1] + ' ' +
                                   modifiedDate.getDate() + ', ' +
                                   modifiedDate.getFullYear());

 //--></script>

0
 

Author Comment

by:Kat010897
ID: 6363562
No, I'm not talking about the last modified date IN the page, I'm talking about the last-modified date associated with the FILE.  i.e. in the Site window, you have several columns: "Local Folder" "Size" etc, and one of those is "Modified".  
0
 
LVL 3

Expert Comment

by:Snazzy_Graphics
ID: 6365478
This is a known shortcoming with DW. There is no pref. setting for server time settings, unlike some ftp clients.

You can indeed lose updates this way, and it does get confusing if your server is in different time zone or such.

You need to fix this on the server site. You have to ask your webhost to modify their ftp server to the right time settings.

According to Macromedia Tech, DW should change the time on local files after your syncronize to match the remote server's date (which is very confusing of course).

And for that to work: "In order for for Dreamweaver's timestamp-related functions to work correctly, users must have permission (set by the Server Administrator) to create directories in the default login directory. "

There's also a particular bug with Serv-U-FTP v.2.3a, if that's what your host is running they need to upgrade.

--Snazzy
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Kat010897
ID: 6367208
Well, that's... weird.  The server's time settings are correct.  What's happening is that I'm uploading the file, and, once I've done that, it APPEARS to have the wrong time in the remote site window.  However, if I log into a unix terminal and get a file listing, the time is correct.  

But the only way to get DW to have the right time in the remote window is to diconnect and re-connect to the site (refreshing doesn't work).  And DW has set the local file (on my PC) to have the wrong time.

Is there any way to disable DW's habit of messing with the "last modified" times on my PC?
0
 
LVL 3

Accepted Solution

by:
Snazzy_Graphics earned 300 total points
ID: 6367363
Yep, that is weird. Haven't had or heard of that problem.

For one thing, synchronize wouldn't work right if it didn't know correct times.

For another, should just update anyway.

Two stabs in dark: is site cache off?

Are you going through some proxy?

That's weird enough I do an reinstall and see if it still happens. There's no way to turn off modified times.
0
 

Author Comment

by:Kat010897
ID: 6367403
Ah... I think I understand what's happening.  I think DW is reading the time on the server and synchronising the PC's "last modified" time BEFORE it copies the file across.  Which is pure madness, of course, but that's probably why the times are wrong.  

I can fix it by deleting the files on the remote before I upload the new copies.  Pain in the ass, but it works.  Thanks for your help!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now