Make Time work with std/strformat (#21409)
* Add test case * Remove formatValue template for `Time` It didn't handle empty specifier correctly which caused it to be blank with strformat
This commit is contained in:
parent
e54d3cc418
commit
6d423f1856
2 changed files with 6 additions and 5 deletions
5
tests/stdlib/t21406.nim
Normal file
5
tests/stdlib/t21406.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import std/[times, strformat]
|
||||
import std/assertions
|
||||
|
||||
doAssert fmt"{getTime()}" == $getTime()
|
||||
doAssert fmt"{now()}" == $now()
|
||||
Loading…
Add table
Add a link
Reference in a new issue