This topic is locked

Date on File timestamp is off

9/12/2005 10:57:54 PM
ASPRunnerPro General questions
beblawi author

I checked off the 'add time stamp to filename' option in FORMATTING step for a file upload/download field.

The timestamp is correct, but the date is off by many days. (today it is eleven days behind).

I made sure that my hosting service has the clock set correctly and they do.

moreover, the timestamps on the filenames are off by the same amount if i run the application locally.

Is there a setting somewhere or what else could be causing this.

Thanks

Sergey Kornilov admin 9/14/2005

Hi,
thank you for pointing me to this bug! We used day of week instead of day of month to generate timestamp.
To fix it open include/jsfunctions.js file and replace the following line:

ts+=padDateValue(now.getDay(),false)+'-';


with this one:

ts+=padDateValue(now.getDate(),false)+'-';


This will be fixed in the next ASPRunnerPro update.

beblawi author 9/15/2005

works perfect.
i assume if i change it in \Program Files\ASPRunnerPro\Source\jsfunctions.js

it will be fixed for all pages generated then on... is this correct?

Sergey Kornilov admin 9/15/2005

Yes, this is correct.