Add AddHours and AddDays date filters - #124
Merged
Merged
Conversation
This was referenced Aug 10, 2026
NickJosevski
force-pushed
the
nj/date-filters
branch
from
August 10, 2026 04:38
3ab7d49 to
9bd296c
Compare
Shift a date by hours or days, output in round-trip format so the result can be chained into Format. Amounts can be negative, or quoted for fractions. Time zone shape is preserved: naive stays naive, UTC stays UTC, and an explicit offset is kept rather than converted to server-local. Raised from ticket 215987 — deriving a ServiceNow change window of start + 2 hours, from the Octopus UI, with no CLI or script step in the path to compute it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski
force-pushed
the
nj/date-filters
branch
from
August 10, 2026 04:47
9bd296c to
e4a6dd2
Compare
NickJosevski
marked this pull request as ready for review
August 10, 2026 04:54
This was referenced Aug 10, 2026
zentron
approved these changes
Aug 10, 2026
zentron
left a comment
Contributor
There was a problem hiding this comment.
Apart from adding a few other keywords ![]()
This was referenced Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related PRs
Merge order: this PR first, then the package publishes, then Docs and Server. Calamari additionally needs its
Octostache 3.9.2pin bumped, so it stays red until then.Why
Raised private: ticket.
That company drives ServiceNow change requests entirely from Octopus variables and need a change window of
start + 2 hours. Deploy fromOctopus UI want to keep doing it this way.What
Two new date filters,
AddHoursandAddDays:AddHours -2). Can also do quoted: (AddHours "1.5")Time zone handling
2030-05-22 09:05:00,Octopus.Task.QueueTime)…Z, fromNowDateUtc)…+02:00)+02:00, not converted to server-localTests
Additive change unlikely to impact anything
🤖 Generated with Claude Code