Skip to content

Commit a025451

Browse files
feat: wip
1 parent 67cf3eb commit a025451

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

contribs/gnodev/cmd/gnodev/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ func execDev(cfg *devCfg, args []string, io commands.IO) (err error) {
303303
}
304304
defer devNode.Close()
305305

306-
nodeLogger.Info("node started", "lisn", devNode.GetRemoteAddress(), "chainID", cfg.chainId)
306+
nodeLogger.Info("node started", "lisn", devNode.GetRemoteAddress(), "chainID", cfg.chainId, "chainTz", cfg.chainTz)
307307

308308
// Create server
309309
mux := http.NewServeMux()
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
package timetest
22

33
import (
4+
"std"
45
"time"
56
)
67

78
func Render(path string) string {
8-
location, _ := time.LoadLocation("America/New_York") // Replace with your desired timezone
9-
// Create a specific time in that timezone
10-
year, month, day := 2024, time.November, 25
11-
hour, minute, second := 15, 30, 0
12-
nyTime := time.Date(year, month, day, hour, minute, second, 0, location)
9+
time2 := time.Now()
10+
tz := std.GetChainID()
1311

14-
return nyTime.String()
12+
return time2.String() + " | " + tz
1513
}

gno.land/pkg/sdk/vm/params.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package vm
33
import "github.com/gnolang/gno/tm2/pkg/sdk"
44

55
const (
6-
chainTzParamPath = "gno.land/r/sys/params.chain.tz.string"
6+
chainTzParamPath = "gno.land/r/sys/params.chain_tz.string"
77
)
88

99
func (vm *VMKeeper) getChainTzParam(ctx sdk.Context) string {

0 commit comments

Comments
 (0)