-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gnodev: The time.Now() timestamp is incorrect #2960
Comments
I can't reproduce the error. I'm using gnodev and I modified r/demo/boards to include the seconds in the timestamp. I use gnokey to make two "CreateThread" transactions. Here is the render. The timestamps are 1:36:01pm and 1:36:08pm
(Be careful not to reload gnodev. There is the known bug that this resets all the timestamps to the same value.) |
@jefft0 Let me disable them and try again. Thank for fast response sir 🙏 |
after disabling extension and use pure mac terminal, I still face the issue. Let me know if anyone has same issue while I try to figure it out 🙏 |
From what I remember, @leohhhn told me that gnodev doesn't create another block if there's not a new transaction, and time.Now() changes if a new block is created. I had exactly the same problem when I was doing tests on a realm. |
Gnodev timestamp time.Now() incorrect.
Description
Not happens with test4, portal loop. Localchain is not tested.
I make a transaction with gnokey to gnodev in-memory node, the timestamp
time.Now()
is incorrect. It will always recognize the timestamp of the previous command as the start time of current command. I tried withdefault macOS
/iterm
terminal, with ohmyzsh and p10k extension.Your environment
Steps to reproduce
ufmt.Println("request at: ", time.Now())
Expected behaviour
The log should be
request at: 1:00:10
<- nowActual behaviour
The log shows that
request at: 1:00:00
<- time of previous commandProposed solution
I do not really know where the problem is, maybe come from my terminal or the way the timestamp
freeze
. Let see if anyone has same issues.Ref image I tested with gnodev - using zsh shell ->
date
andLogTime
return the time.Now().The text was updated successfully, but these errors were encountered: