Skip to content

Commit

Permalink
feat: add support for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuchnord committed Jun 15, 2024
1 parent 4e23288 commit 00a49e1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kosmorro/dumper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env python3

# Kosmorro - Compute The Next Ephemerides
# Copyright (C) 2019 Jérôme Deuchnord <[email protected]>
#
Expand All @@ -22,6 +21,7 @@
import os
import tempfile
import subprocess
import locale
import shutil
from pathlib import Path

Expand Down Expand Up @@ -70,7 +70,7 @@ def __init__(
self.show_graph = show_graph

def get_date_as_string(self, capitalized: bool = False) -> str:
date = format_date(self.date, "full")
date = format_date(self.date, "full", locale.getlocale()[0])

if capitalized:
return "".join([date[0].upper(), date[1:]])
Expand Down Expand Up @@ -243,8 +243,8 @@ def get_moon(self, moon_phase: MoonPhase) -> str:
"{next_moon_phase} on {next_moon_phase_date} at {next_moon_phase_time}"
).format(
next_moon_phase=_(strings.from_moon_phase(moon_phase.get_next_phase())),
next_moon_phase_date=format_date(moon_phase.next_phase_date, "full"),
next_moon_phase_time=format_time(moon_phase.next_phase_date, "short"),
next_moon_phase_date=format_date(moon_phase.next_phase_date, "full", locale.getlocale()[0]),
next_moon_phase_time=format_time(moon_phase.next_phase_date, "short", locale=locale.getlocale()[0]),
)

return "\n".join([current_moon_phase, new_moon_phase])
Expand Down

0 comments on commit 00a49e1

Please sign in to comment.