HF RL Explorer

decimal relative time raises TypeError when given a timezone-aware datetime

decimal relative time raises TypeError when given a timezone-aware datetime: a task in Repo2RLEnv R2E-Gym / SWEGEN (Harbor dataset). When calling decimal relative time (or relative time ) with a timezone-aware datetime and no explicit other argument, a TypeError is raised because the function…

The task

When calling `decimal_relative_time` (or `relative_time`) with a timezone-aware datetime and no explicit `other` argument, a `TypeError` is raised because the function always computes the default `other` as a naive datetime, then tries to subtract it from the timezone-aware input.

Part of FineEnvs/repo2rlenv-r2e-gym.