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
Week update #152
Comments
Hey @wgailey24, Interesting find. So you are setting |
Not that I can find and ive been through the whole of the config directory and controller but I'm not the one that implemented that change so its possible. (my next response will be :monday) |
I can't remember what the Rails defaults are if they're Monday (they might be) so it might not be in your codebase. Was trying to think of what might be the cause of it, and thought maybe that if it wasn't globally set, maybe you'd see this discrepancy? I'm not entirely sure, probably need to build an example and app fiddle with it before I can give you an answer on that. |
I would really appreciate that! On Nov 18, 2016 4:43 PM, "Chris Oliver" notifications@github.com wrote:
|
Yo @wgailey24 I think I figured it out. There are 2 different strftime codes for week number, one is for beginning of week being Sunday and the other is for Monday. I just patched this in the
|
Thanks Chris, Yeah I'll try it out about 2pm est tomorrow. Getting the last of the days sun and some decent waves tonight. Best regards, wgailey24 |
Super jealous. 🛥🏄🌊 |
Hey Chris, |
Great! I'll do a version bump and then release this on rubygems. |
perfect! |
v2.2.1 is out! |
Hey chris, Sorry to be a bother but just read some user feedback and didn't get a Best regards, Wgailey24 On Nov 21, 2016 12:03 PM, "Chris Oliver" notifications@github.com wrote:
|
Oh you know what I forgot to check year transitions. What are you seeing? Might be a fix needed for that. I remember someone said that one of the two started at 0 instead of 1. Technically there are more than 52 weeks in a year, so that might be where the 53 came from.
|
Like I said I won't be able to investigate until tomarrow, but from what I was getting in feedback just before I left, it goes to week 0 and I just thought checking if it goes beyond the end of the year might be a good idea too. There are exactly 52.2857142857 weeks in the year 2016. This is equivalent to 52 weeks and 2 extra days, since there are 366 total days in 2016. Most years have 365 days, but a leap year has 366 days. That adds up to 52 weeks (where each week is exactly 7 days) PLUS 1 or 2 additional days. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
I discovered there's also a
Still not sure what makes the most sense. |
To me what makes the most sense would be grey placeholders, ie if the year starts on a Friday; Monday or Sunday through Thursday would simply be replaced with grey blanks, same for the end of the year if it ends on a Wednesday; Thursday through sat or sun would be grey blanks. Week number: Still not sure what makes the most sense. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
One of the things I'm actually including in my calander is the ability to Biweekly would be nice too with the first week always being the current. best, -Will On Nov 22, 2016 8:13 PM, "William Gailey" notifications@github.com wrote:
|
Yeah, one thing you can do is configure the You'll probably have to customize the title or whatever you want it to look like. I'm trying to figure out what the best default will be for the title for the single week, whether that's %V, %U, or %W. I'm wondering if %V was actually the right default to use for the gem as it seems to start counting at 1 instead of 0. But according to the docs it seems to only be for when the week starts in Monday? I'm not sure if that is going to affect when the week start is set to Sunday. |
Yeah, Biweekly would be nice too with the first week always being the current. best, -Will On Nov 22, 2016 8:13 PM, "William Gailey" notifications@github.com wrote:
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
Yeah, Biweekly would be nice too with the first week always being the current. best, -Will On Nov 22, 2016 8:13 PM, "William Gailey" notifications@github.com wrote:
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
Yeah, —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
Hey Chris, Week number: Still not sure what makes the most sense. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
PS grey areas seem to be already implemented as expected. Nice, very nice! Week number: Still not sure what makes the most sense. —You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread. |
You wanna try using the master branch? I am still using %U and %W, but I changed it to always use the first day of the week to calculate the week number. I don't know if this is better or worse than using %V across the board. |
Yeah, I'll update it to the master branch on Friday, half day today and off Best, Will On Nov 23, 2016 2:46 PM, "Chris Oliver" notifications@github.com wrote:
|
Take your time, no rush. And enjoy the turkey! :) 🦃 🦃 🦃 |
Hey Chris,
I'm on master branch, still does week 0 thing, and now it cuts off months
too i.e.
Week 47: 11/21-11/27
Week 48: 11/28-11/30
Week 49: 12/05-12/11
Best,
Will
…On Nov 23, 2016 8:05 PM, "Chris Oliver" ***@***.***> wrote:
Take your time, no rush. And enjoy the turkey! :) 🦃 🦃 🦃
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8R3PNhM1Mj1QWat5d5SBDB3bPYyJks5rBOLcgaJpZM4K2e_M>
.
|
I was on the branch you patched previously, then got caught up in something
else. I'll look again Monday morning.
…On Nov 26, 2016 6:34 PM, "Chris Oliver" ***@***.***> wrote:
Are you on the master branch?
I just tested again and I can't reproduce week 0 at the beginning or end
of 2015, 2016, or 2017. I'm using Monday as start of week.
Also I don't see what your issue is with cut off months. This is what I
get for week 48:
[image: week 48]
<https://camo.githubusercontent.com/2376dffe74cf6db1628ccbdae52ea9d5475bb528/68747470733a2f2f64337676366c703535716a6171632e636c6f756466726f6e742e6e65742f6974656d732f30783279336e336233573279304530743169307a2f53637265656e25323053686f74253230323031362d31312d32362532306174253230352e33322e3431253230504d2e706e673f582d436c6f75644170702d56697369746f722d49643d353134373026763d6164626239373739>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8UwGrOm2QxhaXoKaV0ewZF7SBm3fks5rCMISgaJpZM4K2e_M>
.
|
Hey Chris,
Just confirmed on the master branch, advance to when the year gets to 1 hit previous and it will go to week 0.
Best,
Will
On Nov 26, 2016 6:41 PM, William Gailey <notifications@github.com> wrote:I was on the branch you patched previously, then got caught up in something
else. I'll look again Monday morning.
On Nov 26, 2016 6:34 PM, "Chris Oliver" ***@***.***> wrote:
Are you on the master branch?
I just tested again and I can't reproduce week 0 at the beginning or end
of 2015, 2016, or 2017. I'm using Monday as start of week.
Also I don't see what your issue is with cut off months. This is what I
get for week 48:
[image: week 48]
<https://camo.githubusercontent.com/2376dffe74cf6db1628ccbdae52ea9d5475bb528/68747470733a2f2f64337676366c703535716a6171632e636c6f756466726f6e742e6e65742f6974656d732f30783279336e336233573279304530743169307a2f53637265656e25323053686f74253230323031362d31312d32362532306174253230352e33322e3431253230504d2e706e673f582d436c6f75644170702d56697369746f722d49643d353134373026763d6164626239373739>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8UwGrOm2QxhaXoKaV0ewZF7SBm3fks5rCMISgaJpZM4K2e_M>
.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
First week of 2017 does that for you? I tried it a bunch of times and it wasn't saying Week 0 for me. grumble |
I can send you more details on what I'm using for it in a minuite. :)
…On Nov 28, 2016 12:16 PM, "Chris Oliver" ***@***.***> wrote:
First week of 2017 does that for you? I tried it a bunch of times and it
wasn't saying Week 0 for me. *grumble*
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8UGluA6o9alIAqrpos2i5qUALlFaks5rCwx2gaJpZM4K2e_M>
.
|
In my calendar view I have:
week_calendar (number_of_weeks: 1, attribute: end_time) do |date|
%b
%u
= date.strftime ("%m/%d/%Y")
CSS:
.calendar-title {padding-right: 40%; padding-left: 40%}
.calendar-heading {a:link, a:active, a:hover, a:visited { font: bold
24px/45px Helvetica, Sans-Serif; color: deepskyblue}
GEMFILE:
gem 'simple_calendar', :branch => 'master'
Best,
Will
…On Nov 28, 2016 1:14 PM, "William Gailey" ***@***.***> wrote:
I can send you more details on what I'm using for it in a minuite. :)
On Nov 28, 2016 12:16 PM, "Chris Oliver" ***@***.***> wrote:
> First week of 2017 does that for you? I tried it a bunch of times and it
> wasn't saying Week 0 for me. *grumble*
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#152 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AOkR8UGluA6o9alIAqrpos2i5qUALlFaks5rCwx2gaJpZM4K2e_M>
> .
>
|
Oh hmm, I think you may have to specify the git url for the gem to make sure you're using it from github.
You should see it in the bundle logs to show that it's coming from Github. |
Hey,
No more week 0 problems but still getting the month cutoff thing.
i.e. starting at week one hit next until at week 6, then hit previous until at week 4, notice how week 5 is an ever changing 3-4 days but never 7 like it should be?
Best,
Will
On Nov 28, 2016 1:37 PM, Chris Oliver <notifications@github.com> wrote:Oh hmm, I think you may have to specify the git url for the gem to make sure you're using it from github.
gem 'simple_calendar', :git => 'https://github.com/excid3/simple_calendar', :branch => 'master'
You should see it in the bundle logs to show that it's coming from Github.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
It seems to be week/month/year when it should be just week/year
Best
Will
…On Nov 28, 2016 1:44 PM, "William Gailey" ***@***.***> wrote:
Hey,
No more week 0 problems but still getting the month cutoff thing.
i.e. starting at week one hit next until at week 6, then hit previous
until at week 4, notice how week 5 is an ever changing 3-4 days but never 7
like it should be?
Best,
Will
On Nov 28, 2016 1:37 PM, Chris Oliver ***@***.***> wrote:Oh
hmm, I think you may have to specify the git url for the gem to make sure
you're using it from github.
gem 'simple_calendar', :git => 'https://github.com/excid3/simple_calendar',
:branch => 'master'
You should see it in the bundle logs to show that it's coming from Github.
—You are receiving this because you commented.Reply to this email
directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8VRttfZbQlHtLR8ZW2PmN8Bt9ztAks5rCyEegaJpZM4K2e_M>
.
|
Good morning Chris,
Any updates on the week month cuttoffs?
Best,
Will
On Nov 28, 2016 1:51 PM, William Gailey <notifications@github.com> wrote:It seems to be week/month/year when it should be just week/year
Best
Will
On Nov 28, 2016 1:44 PM, "William Gailey" ***@***.***> wrote:
Hey,
No more week 0 problems but still getting the month cutoff thing.
i.e. starting at week one hit next until at week 6, then hit previous
until at week 4, notice how week 5 is an ever changing 3-4 days but never 7
like it should be?
Best,
Will
On Nov 28, 2016 1:37 PM, Chris Oliver ***@***.***> wrote:Oh
hmm, I think you may have to specify the git url for the gem to make sure
you're using it from github.
gem 'simple_calendar', :git => 'https://github.com/excid3/simple_calendar',
:branch => 'master'
You should see it in the bundle logs to show that it's coming from Github.
—You are receiving this because you commented.Reply to this email
directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8VRttfZbQlHtLR8ZW2PmN8Bt9ztAks5rCyEegaJpZM4K2e_M>
.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
You sure those aren't being hidden with CSS or something? I can't reproduce the weeks with missing days. Every week displays the full 7 days of dates for me. |
I'll submit it as a new ticket so I can add an image.
On Nov 29, 2016 11:06 AM, Chris Oliver <notifications@github.com> wrote:You sure those aren't being hidden with CSS or something? I can't reproduce the weeks with missing days. Every week displays the full 7 days of dates for me.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Also not so much missing as grayed out
…On Nov 29, 2016 12:58 PM, "William Gailey" ***@***.***> wrote:
I'll submit it as a new ticket so I can add an image.
On Nov 29, 2016 11:06 AM, Chris Oliver ***@***.***>
wrote:You sure those aren't being hidden with CSS or something? I can't
reproduce the weeks with missing days. Every week displays the full 7 days
of dates for me.
—You are receiving this because you commented.Reply to this email
directly, view it on GitHub, or mute the thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8Y8sVRe9Xe6XgrsOhoKDaxz1Zl-Qks5rDGewgaJpZM4K2e_M>
.
|
Did the week 0 fix git pushed up to ruby gems?
…On Nov 29, 2016 1:01 PM, "William Gailey" ***@***.***> wrote:
Also not so much missing as grayed out
On Nov 29, 2016 12:58 PM, "William Gailey" ***@***.***>
wrote:
> I'll submit it as a new ticket so I can add an image.
> On Nov 29, 2016 11:06 AM, Chris Oliver ***@***.***>
> wrote:You sure those aren't being hidden with CSS or something? I can't
> reproduce the weeks with missing days. Every week displays the full 7 days
> of dates for me.
>
> —You are receiving this because you commented.Reply to this email
> directly, view it on GitHub, or mute the thread.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#152 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AOkR8Y8sVRe9Xe6XgrsOhoKDaxz1Zl-Qks5rDGewgaJpZM4K2e_M>
> .
>
|
Hey Chris before I leave you be forever, is there a css tag applied on next and previous on the calendar but only those elements?Best,Will On Nov 29, 2016 12:57 PM, William Gailey <wgailey24@yahoo.com> wrote:I'll submit it as a new ticket so I can add an image.
On Nov 29, 2016 11:06 AM, Chris Oliver <notifications@github.com> wrote:You sure those aren't being hidden with CSS or something? I can't reproduce the weeks with missing days. Every week displays the full 7 days of dates for me.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Hah, no worries. :) Yeah you should be able to highlight those links. You could style against Or you could just add the views to your app and then add some classes in. |
I was able to style them with calendar-heading>a but calendar-heading also
plied to things I didn't want styled.
Best,
Thanks again,
Will
…On Dec 5, 2016 1:59 PM, "Chris Oliver" ***@***.***> wrote:
Hah, no worries. :)
Yeah you should be able to highlight those links. You could style against .calendar-heading
a which you can see here: https://github.com/excid3/
simple_calendar/blob/master/app/views/simple_calendar/_
week_calendar.html.erb
Or you could just add the views to your app and then add some classes in.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#152 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOkR8V7bU8q9gmEZHvHMRP-1gGodcGieks5rFF77gaJpZM4K2e_M>
.
|
Hahaha hey Chris,I know I said you'd be rid of me but is there anyway you could do a quick fix to the week number?if number_of_weeks > 1 then .calendar-title is "week_number -"('week_number+number_of_weeks')Best,Will On Dec 5, 2016 1:59 PM, Chris Oliver <notifications@github.com> wrote:Hah, no worries. :)
Yeah you should be able to highlight those links. You could style against .calendar-heading a which you can see here: https://github.com/excid3/simple_calendar/blob/master/app/views/simple_calendar/_week_calendar.html.erb
Or you could just add the views to your app and then add some classes in.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Feel free to shoot me a PR for it, I don't have any time to add it myself at the moment. |
Shot ;)On Dec 7, 2016 1:10 PM, Chris Oliver <notifications@github.com> wrote:Feel free to shoot me a PR for it, I don't have any time to add it myself at the moment.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
All working the way it should, let me know when it's accepted and pushed into rubygems so I can stop using my local directory.Best,Will On Dec 7, 2016 3:45 PM, William Gailey <wgailey24@yahoo.com> wrote:Shot ;)On Dec 7, 2016 1:10 PM, Chris Oliver <notifications@github.com> wrote:Feel free to shoot me a PR for it, I don't have any time to add it myself at the moment.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Any news on that dynamic week calendar title PR?On Dec 7, 2016 1:10 PM, Chris Oliver <notifications@github.com> wrote:Feel free to shoot me a PR for it, I don't have any time to add it myself at the moment.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Hey Chris,Any news on that dynamic week calendar title PR I did?Best,Will On Dec 7, 2016 1:10 PM, Chris Oliver <notifications@github.com> wrote:Feel free to shoot me a PR for it, I don't have any time to add it myself at the moment.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Hey Chris,I was just wondering if you reviewed the PR at https://github.com/wgailey24/simple_calendarBest regards,William Gailey wgailey24@yahoo.com On Dec 5, 2016 10:59 AM, Chris Oliver <notifications@github.com> wrote:Hah, no worries. :)
Yeah you should be able to highlight those links. You could style against .calendar-heading a which you can see here: https://github.com/excid3/simple_calendar/blob/master/app/views/simple_calendar/_week_calendar.html.erb
Or you could just add the views to your app and then add some classes in.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
HehPR #154On Mar 2, 2017 1:21 PM, William Gailey <wgailey24@yahoo.com> wrote:Hey Chris,I was just wondering if you reviewed the PR at https://github.com/wgailey24/simple_calendarBest regards,William Gailey wgailey24@yahoo.com On Dec 5, 2016 10:59 AM, Chris Oliver <notifications@github.com> wrote:Hah, no worries. :)
Yeah you should be able to highlight those links. You could style against .calendar-heading a which you can see here: https://github.com/excid3/simple_calendar/blob/master/app/views/simple_calendar/_week_calendar.html.erb
Or you could just add the views to your app and then add some classes in.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Hey Chris,Just wondering if you ever had a chance to review PR #154 by wgailey24Best regards,William Gailey On Dec 7, 2016 10:10 AM, Chris Oliver <notifications@github.com> wrote:Feel free to shoot me a PR for it, I don't have any time to add it myself at the moment.
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
Just merged it, sorry for the delay! |
When going to the calendar page I have it set at weekly starting on Monday, when switching between next and previous links the week number doesn't change once, when just using one of the two it does.
So if hitting next then previous I would end up with two weeks numbered at 47
The text was updated successfully, but these errors were encountered: