As pointed out in a comment on the WordPress Hebrew Date Plugin page, there was a PHP function isJewishLeapYear missing from the plugin that caused issues when the month was Adar. I added this to the file and released it as version 0.9. I do not have any posts in Adar, so I can’t really test this fix, so please let me know if you run into any problems.
i loaded version 9.0 and the problem seems to be fixed. great work.
I can’t seem to get the Hebrew plugin to work on the Semiologic Theme. Is there something I need to change to the theme in order for this to work?
The them seems to be much more than just a theme. I am not about to experiment with installing it. Can you let me know what problems you are experiencing with it, or better yet post a URL so that I can see it?
Here is the link to my development server. It’s just a framework for the blog but you can see a sample post. They seem to do the dates differently which may be the root of the problem.
Sorry….hit send too soon.
wp.adammersky.com/sandbox
Is the Hebrew Date Plugin active?
It is.
The plugin only works on WP 1.5+. Is your site using 1.2?
I was told to add these filters to your plugin and I got it to work:
add_filter(‘the_time’,’jewish_date’);
add_filter(‘get_comment_date’,’jewish_date’);
Then I tried to do a clean install on my new server and I get this error:
Fatal error: Call to undefined function: gregoriantojd() in /usr/wwwjfl/JFLMedia/html/peoplehood/wp-content/plugins/hebrewdate.php on line 71
Any thoughts? All I did was add the filters listed above and it worked fine on my old server ()
Let me know….
Adam
Php has to be compiled with -calendar to support date conversion. It looks like the new server did not have PHP compiled with this option.
So how do I get my ISP to do this? If I send them your post will they know what to do?
Have them look at https://www.php.net/manual/en/ref.calendar.php
OK, we did all of this and its still giving this error. I’m at a loss as it worked fine on my old server. I’ll try a fresh install of the plugin and see if that works. Let me know if you think of anything else.
Thanks….
Hi. Mi location is in spanish, and I can’t fit the plugin to work. Anyone as an idea?
WP 2.04
thanks and shana tova
Hello & Hi!
Everything worked fine until october! From now on, the date shows the “default date” (1. january 1970) and the default hebrew date, but I changed nothing! Maybe it is a bug? If I deactivate the hebrew date, everything works fine and the correct date for the new post is shown in the blog. With activated plug-in, all october posts are from 1970… Any idea?
Can you try it with the default theme? Some themes customize the date format and this has the can sometimes cause a failure in date parsing. I18n (internationalization) can also cause issues and I never tested it in any language besides English.
That was a very fast answer! Thanks!
The thing is: Everything worked fine before october… but I`ll check with the default theme…
Actually the issue is probably the parsing of the K in Oktober. I will have a look at it later today, but don’t expect a quick turnaround.
Thanks again … Maybe that’s it… I’ll check the posting regarding an italian version of a website (somewhere on kosherjava). Maybe it helps…
Sorry for posting again: There was an error I didn’t noticed because I set up the wordpress blog in August. As long as the english and the german name for the months are the same, everything works fine: August, september but when it comes to “german-only”, the script produces the 1970 thing. May I change the plug-in code to “translate” the script? Maybe that would be the best “workaround”…
in the hebrewdate.php file, locate the following line (should be line 44):
$months = array(“january”=>”1”, “february”=>”2”, “march”=>”3”, “april”=>”4”, “may”=>”5”, “june”=>”6”, “july”=>”7”, “august”=>”8”, “september”=>”9”, “october”=>”10”, “november”=>”11”, “december”=>”12”);
and replace the month names with the German ones. You can use the lower case month names.
Thank you again…! Interesting that the script does not work again… Somewhere between template’s (I also tried the “default” plugin) and and the hebrew date plugin script something goes wrong. It is hard to track the “bug” (in fact it is not a bug, more a problem of localisation)…
I’ve been making a bunch of changes to your code, including adding a configuration page and a sunset calculator (to handle evening posts / comments!). I’ve also added some more formatting options. I’ve tried to add your link as a trackback, but it appears never to have made it! My main post is here: in the comments section, there are a few trackbacks with some later posts of mine detailing the changes.
I am very grateful that you picked up development of the plugin. I have not had much time lately to keep it up to date, and it is nice that it is being actively developed. I was new to WordPress and some of the code shows it. The way it parses dates reflected my lack of ability to get to the native unformatted date. If this were ever fixed, it would likely work in other languages as well. There must have been a reason I did it this way, though the reasoning escapes me at the time (I havn’t really looked at it in a long time). Do you have any additional plans for the plugin? Keep me posted. As far as track back, it is probably the overzealous spam filters that prevent them from working, so I am cross posting this to my blog.
KosherJava
[Also cross-posted to my blog]
I’m not sure what else needs to be done; the date does need some work (Internally, I use
get_the_date
to get the date/time of the post, andget_comment_date
); I’ll try playing with that.The other big issue is formatting. At the moment, it’s hard coded as DD MMM YYYY (or something similar for archives). If the entire date is English (numbers + transliteration), it works just fine. If the entire thing is Hebrew, it also works just fine without needed a span/rtl. If, however, we have numbers + Hebrew, it shows up in the wrong order (17 מרחשון 5756) (numbers are weakly directional in the bidi algorithm), and so I add a
<span dir="rtl">
tag. I’m also not sure there’s a need for Hebrew formatting that’s not either 17 Marchesvan 5767 or 17 מרחשון 5756 (in all Hebrew, it’s of course always ב מרחשון תשס״ז ).