Solved

Last Modified times on files

Posted on 2001-08-08
6
170 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 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

10 Experts available now in Live!

Get 1:1 Help Now