Skip to content
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

chore: Add debugNow() #25

Merged
merged 1 commit into from
Feb 23, 2024
Merged

chore: Add debugNow() #25

merged 1 commit into from
Feb 23, 2024

Conversation

jefft0
Copy link
Contributor

@jefft0 jefft0 commented Feb 23, 2024

See the doc comment for debugNow(). Use it instead of time.Now() to get the post's timestamp. After reloading in gnodev, posts look like the following with different timestamps:

post1 - @test_1, 2024-02-23 9:32am UTC (0 replies) (0 reposts)
post2 - @test_1, 2024-02-23 9:33am UTC (0 replies) (0 reposts)

When issue gnolang/gno#1509 is resolved, we can revert this.

Signed-off-by: Jeff Thompson <jeff@thefirst.org>
@jefft0 jefft0 requested a review from D4ryl00 February 23, 2024 09:39
Copy link
Contributor

@D4ryl00 D4ryl00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jefft0 jefft0 merged commit 4f370c3 into gnoverse:main Feb 23, 2024
@jefft0 jefft0 deleted the chore/Add-debugNow branch February 23, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants