Team,
The following program demonstrates an error in the behaviour of proc times.format.
import times
let t = times.getLocalTime(times.getTime())
echo($t & " " & times.format(t, "ZZZ"))
echo(times.format(t, "zzz"))
The output is:
Fri Aug 30 22:24:51 2013 IST -05:00
As you can see from the first line of the output, though, I live in India, which is 'GMT +05:30'. Yet, the second line shows me to be somewhere in the American continent!! Is this a known issue? Is there a workaround? Thanks.
-- 0|0
It's quite possible that it's simply buggy as I never comprehensively tested it.
Would be nice if you could figure out the problem, fix it and create a pull request :)