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

Update code.py #775

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Update code.py #775

wants to merge 4 commits into from

Conversation

elmwoodelec
Copy link

Noticed that midnight was not handled properly for cases like "Five to Midnight" or "Twenty after Midnight". Was seeing noon instead of midnight.

Noticed that midnight was not handled properly for cases like "Five to Midnight" or "Twenty after Midnight".  Was seeing noon instead of midnight.
@ladyada ladyada requested a review from TheKitty July 22, 2019 20:41
@brentru
Copy link
Member

brentru commented Jul 25, 2019

@elmwoodelec Thank you for submitting a Pull Request. Your code is currently not passing the linter due to an Undefined variable named MIDIGHT (Output: https://travis-ci.com/adafruit/Adafruit_Learning_System_Guides/builds/120074471#L1171).

Once you fix that up, re-commit and we'll take a look!

Added a special case so clock shows "xxx TO MIDNIGHT" or "xxx PAST MIDNIGHT"  instead of "xxx TO NOON" or "xxx PAST MIDNIGHT".  Midnight was only working properly if the display time was exactly midnight.
Copy link
Author

@elmwoodelec elmwoodelec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed that midnight was not handled properly for cases like "Five to Midnight" or "Twenty after Midnight". Was seeing noon instead of midnight.

@brentru
Copy link
Member

brentru commented Aug 8, 2019

@elmwoodelec This branch is out-of-date with master, you'll need to merge the latest changes from master into it.

@TheKitty Could you take a look at this PR and review?

@TheKitty
Copy link
Collaborator

TheKitty commented Aug 8, 2019 via email

@evaherrada evaherrada changed the base branch from master to main June 10, 2021 20:50
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 this pull request may close these issues.

None yet

4 participants