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

calendar view: 27.10.13 appears twice, then all weekdays wrong #41

Open
testbird opened this issue Apr 6, 2013 · 4 comments
Open

calendar view: 27.10.13 appears twice, then all weekdays wrong #41

testbird opened this issue Apr 6, 2013 · 4 comments

Comments

@testbird
Copy link

testbird commented Apr 6, 2013

The calendar shows October 2013 with the 27th once as the 4th sunday, then again as monday in the next row (still colored with the weekend shade).

@testbird
Copy link
Author

Oh bummer. Just noticed that all weekdays after the 27th october 2013 are wrong by one day.

@testbird
Copy link
Author

Hello, I found this calendar bug only pops up if the following zafu is used, that shows a second calendar widget in the block.

Here is the zafu to experience the same 27.10.13 date twice:

<div id='cal' do='block'>
<r:void do='calendar' attr='date' size='large' tz='Europe/Berlin' select='posts where #{cal_start} <= date and date < #{cal_end} in section order by date asc, title asc'>
  <h3 do='header'>
    <a rel="nofollow" do='link' date='date.advance(:months => -1)' update='cal' t='img_prev_page'/>
    <r:date format='%B %Y'/>
    <a rel="nofollow" do='link' date='date.advance(:months => 1)' update='cal' t='img_next_page'/>
  </h3>
</r:void>

<r:void set_date='date.advance(:months => 1)'>

<r:void do='calendar' attr='date' size='large' tz='Europe/Berlin' select='posts where #{cal_start} <= date and date < #{cal_end} in section order by date asc, title asc'>
  <h3 do='header'>

    <r:date format='%B %Y'/>

  </h3>
</r:void>

</r:void>

</div>

@testbird
Copy link
Author

Trial and error finally showed the error is caused by the option tz='Europe/Berlin' in the zafu code above.

On the 27.10.13 this timezone changes from "daylight saving" summertime to wintertime.

@testbird
Copy link
Author

testbird commented Jun 9, 2013

To avoid problems with those double (a/b) hours and skipped hours, maybe it is sufficient to use noon (12 o'clock) as reference for the days instead of the beginning 00:00 hour?

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

No branches or pull requests

1 participant