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

Port root before_v0.60/*.nu scripts (issue #221) #837

Merged
merged 7 commits into from
May 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
port maintainer_time.nu
just `update {|row| ...}`
  • Loading branch information
39555 committed May 12, 2024
commit a37c0fe41a4060c1d268ee8ebe086d0c4f4f7521
6 changes: 2 additions & 4 deletions modules/maintainer_time.nu
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ let m_table = (
]
)
let now = (date now)
$m_table | update time {
each { |name|
$now | date to-timezone ($name | get tz) | date format '%c'
}
$m_table | update time {|row|
$now | date to-timezone ($row | get tz) | format date '%c'
}