Skip to content

Commit

Permalink
try different timestamp for git out-of-date marking
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Oct 21, 2024
1 parent 60f9555 commit 86d79fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mark-out-of-date.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def get_git_last_modified_date(file_path):
return datetime.datetime.strptime(os.popen(f"git log -1 --date=format:'%Y-%m-%d %H:%M:%S' --format=%cd -- {file_path}").read().strip(), '%Y-%m-%d %H:%M:%S')
return datetime.datetime.strptime(os.popen(f"git log -1 --date=format:'%Y-%m-%d %H:%M:%S' --format=%ci -- {file_path}").read().strip(), '%Y-%m-%d %H:%M:%S %z')

def generate_python_code(model_file_path):
s223_last_updated = get_git_last_modified_date("ontologies/223p.ttl")
Expand Down

0 comments on commit 86d79fc

Please sign in to comment.