Closed (fixed)
Project:
Date
Version:
5.x-1.8
Component:
Date Timezone
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Oct 2008 at 19:42 UTC
Updated:
10 Apr 2009 at 11:10 UTC
Hello,
Israel's daylight saving end date is dependent on the jewish calendar. The following patch is re-using the dst code that was written in the event module. However since it was not completely accurate, some fixing was required in order for the conversion to work properly. Note that this patch is only relevant for V1.8
Enjoy.
| Comment | File | Size | Author |
|---|---|---|---|
| date_dst_israel.patch | 3.11 KB | udig |
Comments
Comment #1
z.stolar commentedThanks for that.
You should change the "echo" command at the end to drupal_set_message().
Is there any chance getting a fix for core as well? Do you know if core handles daylight saving time at all?
Comment #2
karens commentedThis now only affects the PHP4 version of Date, but I've updated both the 5.2 and 6.2 versions with this. If you're using PHP 5.2+ the native PHP function handles DST rules.
I removed the echo message, which won't work at all, we just return FALSE if it's outside a range we understand.
Core doesn't handle DST at all until Drupal 7, where the timezone rules are natively handled by PHP 5.2, since PHP 5.2 is required by that time.