Output Rāhukāla times in the local time zone

This commit is contained in:
2022-03-28 15:34:27 +02:00
förälder bf004f356c
incheckning 7d15bd1956

Visa fil

@@ -81,9 +81,13 @@ def main() -> None:
if next_rahukaalam is not None: if next_rahukaalam is not None:
if rahukaalam: if rahukaalam:
print(f'Rāhukāla (until {next_rahukaalam.strftime("%H:%M:%S")})') print(
f'Rāhukāla (until {next_rahukaalam.astimezone(local_tz).strftime("%H:%M:%S")})'
)
else: else:
print(f'Next Rāhukāla at {next_rahukaalam.strftime("%H:%M:%S")}') print(
f'Next Rāhukāla at {next_rahukaalam.astimezone(local_tz).strftime("%H:%M:%S")}'
)
print(get_moon_phase_text(moon_phase)) print(get_moon_phase_text(moon_phase))