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

feat(cast age): clarify block timestamp is UTC to allow for date compatibility #9913

Merged
merged 1 commit into from
Feb 18, 2025

Conversation

zerosnacks
Copy link
Member

@zerosnacks zerosnacks commented Feb 18, 2025

Motivation

Closes: #9899

Solution

Example:

cast age --rpc-url https://eth.merkle.io

Before: Tue Feb 18 13:35:59 2025
After: Tue Feb 18 13:35:35 2025 UTC

Before (as noted in ticket):

date +%s -d "`cast age 15537394 --rpc-url https://eth.merkle.io`"
1663216979

After (correct):

date +%s -d "`cast age 15537394 --rpc-url https://eth.merkle.io`"
1663224179

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@zerosnacks zerosnacks changed the title clarify block timestamp is always UTC feat(cast age): clarify block timestamp is always UTC Feb 18, 2025
@zerosnacks zerosnacks changed the title feat(cast age): clarify block timestamp is always UTC feat(cast age): clarify block timestamp is UTC to allow for date compatibility Feb 18, 2025
@zerosnacks zerosnacks enabled auto-merge (squash) February 18, 2025 13:43
@zerosnacks zerosnacks merged commit 087c676 into master Feb 18, 2025
22 checks passed
@zerosnacks zerosnacks deleted the zerosnacks/add-utc-to-cast-age branch February 18, 2025 14:01
@zerosnacks zerosnacks added T-feature Type: feature C-cast Command: cast labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cast Command: cast T-feature Type: feature
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Timezone-aware output for age
2 participants