mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-10-13 03:37:12 +02:00
fix: year outside of range error
This commit is contained in:
1 parent
362f580d0c
commit
3e77b57a72
1 file changed
+3
@@ -34,6 +34,9 @@ func BookMarkType(a int64) string {
|
|||||||
|
|
||||||
func TimeStampFormat(stamp int64) time.Time {
|
func TimeStampFormat(stamp int64) time.Time {
|
||||||
s1 := time.Unix(stamp, 0)
|
s1 := time.Unix(stamp, 0)
|
||||||
|
if s1.Local().Year() > 9999 {
|
||||||
|
return time.Date(9999, 12, 13, 23, 59, 59, 0, time.Local)
|
||||||
|
}
|
||||||
return s1
|
return s1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user