general03 / flask-autoindex

Generates index page like mod_autoindex
https://flask-autoindex.readthedocs.io
MIT License
112 stars 35 forks source link

Please do not display milliseconds in last modified field #29

Closed meng89 closed 4 years ago

meng89 commented 8 years ago

I'm use Linux and python 3.4 The page's last modified fields look like this:

2016-04-08 18:55:59.502160

If it is not a feature, I think this will fix it:

flask_autoindex/entry.py:112 return datetime.fromtimestamp(os.path.getmtime(self.abspath)).replace(microsecond=0)

Sorry for my bad English

general03 commented 4 years ago

It will be available on tag v0.6.6

Thanks