🎨 Clean code

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-17 11:21:22 +08:00
parent 55602df2e7
commit 345d802725
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -20,7 +20,6 @@ import (
"C"
"fmt"
"os"
"path/filepath"
"strings"
"time"
@ -114,9 +113,6 @@ func GetMimeTypeByExt(ext string) string {
//export SetTimezone
func SetTimezone(container, appDir, timezoneID string) {
if "ios" == container {
os.Setenv("ZONEINFO", filepath.Join(appDir, "app", "zoneinfo.zip"))
}
z, err := time.LoadLocation(strings.TrimSpace(timezoneID))
if err != nil {
fmt.Printf("load location failed: %s\n", err)