Skip to content

Commit

Permalink
Revert "Better handling of --day, --week, etc arguments with custom d…
Browse files Browse the repository at this point in the history
…ay_start_hour"

This reverts commit 3214d4ca12cdd20e8f72546e682cc9bf715b6a05.
  • Loading branch information
sfider authored and teutat3s committed Aug 19, 2024
1 parent 9b9474f commit e0ff01e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions watson/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ def convert(self, value, param, ctx) -> arrow:
"options", "week_start", "monday")
date = apply_weekday_offset(
start_time=date, week_start=week_start)
if param.name in ["day", "week", "month", "luna", "year"]:
day_start_hour = ctx.obj.config.get(
"options", "day_start_hour", 0)
date = date.shift(hours=-int(day_start_hour))
return date

def _parse_multiformat(self, value) -> arrow:
Expand Down

0 comments on commit e0ff01e

Please sign in to comment.