Add dashes to the timestamp hotkey.

master
voussoir 2022-11-02 18:43:09 -07:00
parent 863cb40709
commit cb53a8495a
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 1 deletions

View File

@ -7,5 +7,5 @@ import sublime, sublime_plugin
class TimestampCommand(sublime_plugin.TextCommand):
def run(self, edit):
timestamp = "%s" % (datetime.datetime.now().strftime("%Y %m %d"))
timestamp = "%s" % (datetime.datetime.now().strftime("%Y-%m-%d"))
self.view.insert(edit, self.view.sel()[0].begin(), timestamp)