mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
fix/enhancement to custime
This commit is contained in:
parent
b40ca85172
commit
7b3caed20f
@ -75,8 +75,9 @@ var unitMap = map[string]int64{
|
||||
"m": int64(time.Minute),
|
||||
"h": int64(time.Hour),
|
||||
"d": int64(time.Hour * 24),
|
||||
"w": int64(time.Hour * 24 * 7),
|
||||
"mo": int64(time.Hour * 24 * 30),
|
||||
"y": int64(time.Hour * 24 * 265),
|
||||
"y": int64(time.Hour * 24 * 365),
|
||||
}
|
||||
|
||||
// ParseDuration parses a duration string.
|
||||
|
Loading…
Reference in New Issue
Block a user