Skip to content

Commit

Permalink
Merge pull request #4 from contrick64/fix-mac-strftime
Browse files Browse the repository at this point in the history
parse custom directives before strftime call
  • Loading branch information
contrick64 authored Apr 29, 2024
2 parents d011887 + 2e9519d commit a2f19a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daily/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def parse_time_format_string(string, **kwargs):
'O':kwargs.get('mood_words',''),
'E':kwargs.get('entry','')
}
string = datetime.now().strftime(string)
for directive,value in new_directives.items():
string = re.sub('%'+directive,value,string)
string = datetime.now().strftime(string)
return string

0 comments on commit a2f19a0

Please sign in to comment.