Closed (fixed)
Project:
Availability Calendars
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Mar 2011 at 15:37 UTC
Updated:
30 Mar 2011 at 09:51 UTC
The month labels appear incorrectly. It shows two months of March, the second one should be april. All other months are offset by 1 as well.
Comments
Comment #1
fietserwinI can't reproduce the error.
- Can you please give an overview of your settings? (global and node specific if enabled)
- Is it for all nodes, or some nodes?
- Did you run update.php?
- From what version were you coming?
- What dev version (date published) did you install?
Or ... might it have to do with timezone settings?
- What timezone settings are you using (in Drupal and on the server)?
Comment #2
sduford commentedYou can see it at this link: http://litoralpanama.com/content/disponibilit%C3%A9-availability
Note that the first month displays correctly. I first installed v. 6x-1.5 to try it out, then I upgraded to 6.x-2.x-dev (from this morning) because I needed some of the new features. I did run update.php and didn't get any errors.
I only use it on one node, but I will try another one. Timezone settings are all on Eastern Daily Time (north America)
I just created a new node and it shows the same problem.
Should I try uninstalling, deleting the tables, and re-installing?
Comment #3
sduford commentedOK, I tried uninstalling and reinstalling and I sitll get the same problem. Tried it with weeks starting on Saturday, Sunday and Monday, still the same.
Comment #4
fietserwinI was able to reproduce the problem, I will solve it tomorrow. It has to do with timezone settings and conversions from and to local timestamps before formatting.
Comment #5
fietserwinFixed and committed to 6.x.-2.x, 6.x-1.x, and 7.x-2.x.
Problem was a regression of #1009216: Date translation problem. Where we changed the code to use format_date() to get translated month titles. format_date() does some timezone juggling before outputting the time as passed in (?!). In D6 you specify a fixed offset, thus you get problems when either outputting dates in summer or winter time periods.D7 handles this correctly, but I changed it anyway to keep the code in sync. (oops: you won't see it yet in the changelog, not committed that one yet.)