Fixed loading issue
It was found that I mixed tabs and spaces which caused the plugin to fail loading. (Oops)
This commit is contained in:
parent
65711566e1
commit
2f3ad68cd0
@ -46,10 +46,10 @@ func timestamp(fmat="{month}/{day}/{year} {24hour}:{min}:{sec}", in_utc: bool =
|
||||
var hour12 = t.hour
|
||||
var ampm = "" # Fill it in only if 12hour is requested
|
||||
if "12hour" in fmat: # Only use if 12hour is visible in formating
|
||||
ampm = "AM"
|
||||
if hour12 > 12:
|
||||
hour12 -= 12
|
||||
ampm = "PM"
|
||||
ampm = "AM"
|
||||
if hour12 > 12:
|
||||
hour12 -= 12
|
||||
ampm = "PM"
|
||||
var result = fmat.format({"month": str(t.month).pad_zeros(2), "day": str(t.day).pad_zeros(2), "year": str(t.year).pad_zeros(4), "24hour": str(t.hour).pad_zeros(2), "12hour": str(hour12).pad_zeros(2), "min": str(t.minute).pad_zeros(2), "sec": str(t.second).pad_zeros(2), "ampm": str(ampm)})
|
||||
return result
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user