Emulate PHP bug 54254 in Hebrew dates