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

Put 12 o'clock clock face at array index 0 #365

Closed
wants to merge 1 commit into from
Closed

Put 12 o'clock clock face at array index 0 #365

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2015

I was experiencing an issue on OS X Yosemite where the clock was always displaying an hour ahead. I think this fixed the issue, since 12 % 12 should equal 0, so I would expect the clock face for 12 o'clock to be at index 0. This seems to have fixed the issue for me.

I was experiencing an issue on OS X Yosemite where the clock was always displaying an hour ahead.  I think this fixed the issue, since 12 % 12 should equal 0, so I would expect the clock face for 12 o'clock to be at index 0.  This seems to have fixed the issue for me.
@dolmen dolmen added bug clock Related to the time display labels May 26, 2015
@dolmen
Copy link
Collaborator

dolmen commented Jun 9, 2015

Related to change made in #273.

@anthonygelibert
Copy link
Contributor

That's strange… this change is OK on my Mac (and the explanations are OK) but I remember that, without the changes of my commit, a wrong hour was displayed. So… all my apologies.

@dolmen
Copy link
Collaborator

dolmen commented Aug 26, 2015

Note to self: check if this is an array indexing issue (bash starts at 0, zsh starts at 1)

@anthonygelibert
Copy link
Contributor

My apologies… but I've just checked the last develop version and there is still a problem for me.

On ZSH, local time (France) is 0:42 and i can't obtain an analog clock except if I replace the line

      echo -n "${half[hi]} "

by

      echo -n "${half[hi+1]} "

in _lp_time_analog.

I think it's related to your last comment @dolmen.

dolmen added a commit that referenced this pull request Nov 5, 2015
Thanks to @wprl for an alternate attempt at a fix.
Thanks to @anthonygelibert for feedback.
@dolmen
Copy link
Collaborator

dolmen commented Nov 5, 2015

This seems to be fixed by a976934. Closing.

@dolmen dolmen closed this Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug clock Related to the time display
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants