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.

CommentFileSizeAuthor
date_dst_israel.patch3.11 KBudig

Comments

z.stolar’s picture

Status: Needs review » Needs work

Thanks 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?

karens’s picture

Status: Needs work » Fixed

This 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.