Needs review
Project:
Classroom
Version:
6.x-1.1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
1 Jul 2010 at 20:23 UTC
Updated:
29 Sep 2010 at 22:08 UTC
Jump to comment: Most recent file
Whenever I edit an existing course, start and end dates for the course and enrollment jump one day ahead. So, the teacher needs to change whatever she needs and then remember to edit the dates to reset them to one day defore the day they jumped to.
All hints are welcome!
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | classroom-dates-jump-ahead-843000-7.patch | 484 bytes | wjaspers |
Comments
Comment #1
cesar.brod@gmail.com commentedThis problem is really bothering us. Is there a way we can help in terms to trace it? Is someone experiencing the same problem? We do not have a problem with other date fields inside Drupal.
Thanks!
Comment #2
pwaak commentedThis really bothers me as well. I suspect it would be relatively easy to fix, but I have not had the time to stop and look for it.
Comment #3
imobachgs commentedHi all,
I guess that it has something to do with your timezone. I haven't had time to take a look on that, but I'll try to do it this week. What timezone are you using?
Thank you!
Comment #4
mrebelo.vqeb commentedI have the same problem.
Comment #5
pwaak commentedWe are in time zone -6 (-5 daylight savings).
For reference, here is my list of date problems:
1. The Starting date and Signup start date both advance by one day when editing,
2. The End date and Signup end date both reset to the current day when editing, and
3. Once Unlimited end date or Unlimited end inscription is disabled, it cannot be re-enabled.
BTW, this module has been easier to use than the organic groups solution I was using before. Thank you.
Comment #6
wjaspers commentedProblem persists in 1.1
Comment #7
wjaspers commentedFound it!
In file: classroom.common.inc
On line: 81
Near:
Replace:
With:
Note!
I commented out the user's timezone. I'm not sure why this even set when we're not working with hours or minutes....
Apparently, PHP's gmdate function is throwing this off.
The cause appears to be that "gmdate" cannot handle time zones that fall under daylight savings rules.
EDIT: See patch below...
Comment #8
wjaspers commentedComment #9
imobachgs commentedHi jwaspers,
Thank you again :) Hopefully I'll try this patch and I'll commit it during the weekend!
Comment #10
cesar.brod@gmail.com commentedThanks osoh for the attention and specially wjaspers for the fix! Fantastic!
Comment #11
wjaspers commentedAny chance this has been tested? If so, could you please commit the patch? Thanks!
Comment #12
imobachgs commentedHi wjaspers,
I'll try to test it as soon as possible.
Thank you!