Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not a issue per say #255

Open
maserowik opened this issue Apr 10, 2023 · 3 comments
Open

Not a issue per say #255

maserowik opened this issue Apr 10, 2023 · 3 comments

Comments

@maserowik
Copy link

maserowik commented Apr 10, 2023

Upgraded to the latest version of PiClock. Is there a way to get the month and date to be to the left of the day?
piclock

Thanks
Mike

@xenon462
Copy link

in the PyQtPiClock.py file at the very end of AlignRight fix AlignLeft
jpg

@maserowik
Copy link
Author

Looking to add the date also
for example
4/10/2023 Monday
4/11/2023 Tuesday

@xenon462
Copy link

xenon462 commented Apr 12, 2023

file PyQtPiClock.py line 527 (three-hour weather forecast. First, second and third line in a column)

day.setText("{0:%A %I:%M%p}".format(datetime.datetime.fromtimestamp(
change

day.setText("{%m %d %Y 0:%A}".format(datetime.datetime.fromtimestamp(
or 0:%A %H:%M%p

file PyQtPiClock.py line 590 (daily weather forecast. Fourth - ninth line of the whole column)

day.setText("{0:%A}".format(dt))
change
day.setText("{%m %d %Y 0:%A}".format(dt))
or 0:%a

more about the time format
https://docs.python.org/3/library/datetime.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants