Fixed times.format handling of month numbers.
This commit is contained in:
parent
2509c08d34
commit
ec39788b41
1 changed files with 2 additions and 2 deletions
|
|
@ -580,11 +580,11 @@ proc format*(info: TTimeInfo, f: string): string =
|
|||
result.add('0')
|
||||
result.add($info.minute)
|
||||
of "M":
|
||||
result.add($(int(info.month)))
|
||||
result.add($(int(info.month)+1))
|
||||
of "MM":
|
||||
if int(info.month) < 10:
|
||||
result.add('0')
|
||||
result.add($(int(info.month)))
|
||||
result.add($(int(info.month)+1))
|
||||
of "MMM":
|
||||
result.add(($info.month)[0..2])
|
||||
of "MMMM":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue