Merge pull request #494 from jackyzy823/fix-datetime-fromflatty
fix datetime fromFlatty
This commit is contained in:
commit
47ec6ff3d2
1 changed files with 3 additions and 1 deletions
|
@ -17,7 +17,9 @@ proc toFlatty*(s: var string, x: DateTime) =
|
||||||
s.toFlatty(x.toTime().toUnix())
|
s.toFlatty(x.toTime().toUnix())
|
||||||
|
|
||||||
proc fromFlatty*(s: string, i: var int, x: var DateTime) =
|
proc fromFlatty*(s: string, i: var int, x: var DateTime) =
|
||||||
x = fromUnix(s.fromFlatty(int64)).utc()
|
var unix: int64
|
||||||
|
s.fromFlatty(i, unix)
|
||||||
|
x = fromUnix(unix).utc()
|
||||||
|
|
||||||
proc setCacheTimes*(cfg: Config) =
|
proc setCacheTimes*(cfg: Config) =
|
||||||
rssCacheTime = cfg.rssCacheTime * 60
|
rssCacheTime = cfg.rssCacheTime * 60
|
||||||
|
|
Loading…
Reference in a new issue