Merge pull request #924 from trheyi/main

feat: Enhance getTimestamp function to support time.Time type
This commit is contained in:
Max 2025-04-10 10:46:51 +08:00 committed by GitHub
commit caa529dc58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,9 @@ func getTimestamp(v interface{}) (int64, error) {
return ts, nil
}
case time.Time:
return v.UnixNano(), nil
case nil:
return 0, nil
}