mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
Fixed times.format
This commit is contained in:
@@ -557,9 +557,9 @@ proc format*(info: TTimeInfo, f: string): string =
|
||||
result.add("0")
|
||||
result.add($info.monthday)
|
||||
of "ddd":
|
||||
result.add(($info.month)[0 .. 2])
|
||||
result.add(($info.monthday)[0 .. 2])
|
||||
of "dddd":
|
||||
result.add($info.month)
|
||||
result.add($info.monthday)
|
||||
of "h":
|
||||
result.add($(info.hour - 12))
|
||||
of "hh":
|
||||
|
||||
Reference in New Issue
Block a user