mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 01:22:25 -05:00
[chore]: Bump modernc.org/sqlite from 1.22.0 to 1.22.1 (#1726)
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.22.0 to 1.22.1. - [Release notes](https://gitlab.com/cznic/sqlite/tags) - [Commits](https://gitlab.com/cznic/sqlite/compare/v1.22.0...v1.22.1) --- updated-dependencies: - dependency-name: modernc.org/sqlite dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
parent
e9de7bec15
commit
66f09a8d93
10 changed files with 38 additions and 75 deletions
21
vendor/modernc.org/libc/libc.go
generated
vendored
21
vendor/modernc.org/libc/libc.go
generated
vendored
|
|
@ -970,13 +970,24 @@ func Xatol(t *TLS, nptr uintptr) long {
|
|||
}
|
||||
}
|
||||
|
||||
func getLocalLocation() (loc *gotime.Location) {
|
||||
loc = gotime.Local
|
||||
if r := getenv(Environ(), "TZ"); r != 0 {
|
||||
zname := GoString(r)
|
||||
zone, off := parseZone(zname)
|
||||
loc = gotime.FixedZone(zone, -off)
|
||||
loc2, _ := gotime.LoadLocation(zname)
|
||||
if loc2 != nil {
|
||||
loc = loc2
|
||||
}
|
||||
}
|
||||
return loc
|
||||
|
||||
}
|
||||
|
||||
// time_t mktime(struct tm *tm);
|
||||
func Xmktime(t *TLS, ptm uintptr) time.Time_t {
|
||||
loc := gotime.Local
|
||||
if r := getenv(Environ(), "TZ"); r != 0 {
|
||||
zone, off := parseZone(GoString(r))
|
||||
loc = gotime.FixedZone(zone, off)
|
||||
}
|
||||
loc := getLocalLocation()
|
||||
tt := gotime.Date(
|
||||
int((*time.Tm)(unsafe.Pointer(ptm)).Ftm_year+1900),
|
||||
gotime.Month((*time.Tm)(unsafe.Pointer(ptm)).Ftm_mon+1),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue