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

This commit is contained in:
Gergely Polonkai 2022-03-28 15:34:27 +02:00
parent bf004f356c
commit 7d15bd1956
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -81,9 +81,13 @@ def main() -> None:
if next_rahukaalam is not None:
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:
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))