Skip to content

Commit

Permalink
try LC_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
lbernhard95 committed Nov 1, 2024
1 parent 367afb9 commit d368a78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion schafkopf/core/bitpoll.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class VoteDate(BaseModel):

@staticmethod
def from_bitpoll_date(date: str) -> "VoteDate":
locale.setlocale(locale.LC_TIME, 'de_DE')
locale.setlocale(locale.LC_ALL, 'de_DE')
date = datetime.strptime(date, "%a, %d. %b. %Y")
date = date.replace(hour=18, minute=30)
return VoteDate(
Expand Down
2 changes: 1 addition & 1 deletion schafkopf/core/gmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def create_calendar_entry(start: datetime, end: datetime, summary: str) -> MIMEB


def format_datetime(dt: datetime):
locale.setlocale(locale.LC_TIME, 'en_US.UTF-8')
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
weekday_name = dt.strftime('%A')
month_name = dt.strftime('%B')
day = dt.day
Expand Down
2 changes: 1 addition & 1 deletion schafkopf/scheduler/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update && \

# Set locale environment variables
ENV LANG=de_DE.UTF-8 \
LC_TIME=de_DE.UTF-8 \
LC_ALL=de_DE.UTF-8 \
LANGUAGE=de_DE.UTF-8

ENV PYTHONPATH="/app"
Expand Down

0 comments on commit d368a78

Please sign in to comment.