Skip to content

Commit

Permalink
Make the timestamp in the focus_info command response timezone aware
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Oct 3, 2024
1 parent c03819e commit 37c2cd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lvmguider/actor/commands/focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ async def focus_info(command: GuiderCommand):
current_focus = await focuser.get_focus_position(command)

ref = command.actor._reference_focus
timestamp = datetime.fromtimestamp(ref.timestamp).isoformat() if ref else None
timestamp = (
datetime.fromtimestamp(ref.timestamp, tz=timezone.utc).isoformat()
if ref
else None
)

command.info(
reference_focus={
Expand Down

0 comments on commit 37c2cd6

Please sign in to comment.