mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-17 12:38:07 +01:00
🎨 Clean code
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
55602df2e7
commit
345d802725
1 changed files with 0 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue