[EMAIL PROTECTED] wrote:
on my windows xp box os.path.getmtime gives back local time (I just
saved the file):
os.path.getmtime('c:\\temp\\testset.py')
1106955016
print time.mktime(time.localtime())
1106955034.0
No. mktime is converting the local time to UTC. Try this instead:
Py> time.gmtime(os.pat
Qvx wrote:
> Hello,
>
> I'we written a simple web deployment program which scans for the
> changes made to local copy of web site. Changed files are than
> packaged into a zip file and deployed to web server.
>
> Now here's the catch. Changes are computed using (1) log file from the
> last deplo
on my windows xp box os.path.getmtime gives back local time (I just
saved the file):
>>> os.path.getmtime('c:\\temp\\testset.py')
1106955016
>>> print time.mktime(time.localtime())
1106955034.0
You can try to figure out if DST is on by comparing time.localtime()
versus time.gmtime(). In the Wester
Hello,
I'we written a simple web deployment program which scans for the
changes made to local copy of web site. Changed files are than
packaged into a zip file and deployed to web server.
Now here's the catch. Changes are computed using (1) log file from the
last deployment and (2) local file sys