Metadata-Version: 2.4
Name: timefixer
Version: 2026.11.11.0
Summary: A service to fix files with timestamps in the future.
Author-email: Ernesto Alfonso <erjoalgo@gmail.com>
Maintainer-email: Ernesto Alfonso <erjoalgo@gmail.com>
License-Expression: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/erjoalgo/dotfiles/tree/master/bin/timefixer
Project-URL: Documentation, https://github.com/erjoalgo/dotfiles/tree/master/bin/timefixer/README.md
Project-URL: Repository, https://github.com/erjoalgo/dotfiles/tree/master/bin/timefixer
Project-URL: Bug Tracker, https://github.com/erjoalgo/dotfiles/issues
Keywords: timefixer,timestamp,modified,future
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: No Input/Output (Daemon)
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: System :: Filesystems
Classifier: Topic :: Utilities
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: watchdog

This service helps to fix newly created or modified files with timestamps in the future.
This can happen occasionally when downloading files with incorrect timestamps based on different time zones.
Fixing such cases makes it possible to reliably fetch the latest modified file from a list of directories, which helps my productivity.

It runs on Linux, as a systemd user service.

To install:

`$ pip install timefixer`

Install and start the service, watching `~/Downloads`:

`$ timefixer --install-systemd`

Or watch other directories:

`$ timefixer --install-systemd -d ~/Downloads ~/Pictures`

The service also reports the most recently created or moved file over a unix socket,
in `$XDG_RUNTIME_DIR/timestampfixer.sock` (or `~/.cache/timestampfixer.sock` if `XDG_RUNTIME_DIR` isn't set):

`$ curl --unix-socket "$XDG_RUNTIME_DIR/timestampfixer.sock" http://localhost/`
