Hebrew Date Plugin Version 0.9 Released

Posted by KosherJava on August 15, 2005 - י' אב תשס"ה | Tagged as: Software Dev, WordPress

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

Update Wordpress Hebrew Date Plugin Has a New Home!

26 Responses to “Hebrew Date Plugin Version 0.9 Released”

  1. on August 15, 2005 - י"א אב תשס"ה at 10:29 pm 1.José said …

    i loaded version 9.0 and the problem seems to be fixed. great work.

  2. on September 29, 2005 - כ"ה אלול תשס"ה at 3:20 pm 2.Adam Mersky said …

    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?

  3. on September 29, 2005 - כ"ה אלול תשס"ה at 3:45 pm 3.KosherJava said …

    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?

  4. on September 30, 2005 - כ"ו אלול תשס"ה at 3:03 pm 4.Adam Mersky said …

    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.

  5. on September 30, 2005 - כ"ו אלול תשס"ה at 3:04 pm 5.Adam Mersky said …

    Sorry….hit send too soon.

    http://wp.adammersky.com/sandbox

  6. on September 30, 2005 - כ"ו אלול תשס"ה at 3:12 pm 6.KosherJava said …

    Is the Hebrew Date Plugin active?

  7. on September 30, 2005 - כ"ו אלול תשס"ה at 5:07 pm 7.Adam Mersky said …

    It is.

  8. on October 8, 2005 - ו' תשרי תשס"ו at 10:40 pm 8.KosherJava said …

    The plugin only works on WP 1.5+. Is your site using 1.2?

  9. on October 30, 2005 - כ"ז תשרי תשס"ו at 9:05 pm 9.Adam Mersky said …

    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 (http://wp.adammersky.com/sandbox)

    Let me know….

    Adam

  10. on October 31, 2005 - כ"ח תשרי תשס"ו at 12:03 am 10.KosherJava said …

    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.

  11. on October 31, 2005 - כ"ח תשרי תשס"ו at 12:57 am 11.Adam Mersky said …

    So how do I get my ISP to do this? If I send them your post will they know what to do?

  12. on October 31, 2005 - כ"ט תשרי תשס"ו at 11:10 pm 12.KosherJava said …

    have them look at http://us2.php.net/manual/en/ref.calendar.php
    ” To get these functions to work, you have to compile PHP with –enable-calendar”.

  13. on November 2, 2005 - א' חשון תשס"ו at 8:39 pm 13.Adam Mersky said …

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

  14. on September 26, 2006 - ד' תשרי תשס"ז at 10:13 am 14.arie gardos said …

    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

  15. on October 4, 2006 - י"ב תשרי תשס"ז at 6:56 am 15.Chajm said …

    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?

  16. on October 4, 2006 - י"ב תשרי תשס"ז at 7:54 am 16.KosherJava said …

    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.

  17. on October 4, 2006 - י"ב תשרי תשס"ז at 8:09 am 17.Chajm said …

    That was a very fast answer! Thanks!
    The thing is: Everything worked fine before october… but I`ll check with the default theme…

  18. on October 4, 2006 - י"ב תשרי תשס"ז at 8:20 am 18.KosherJava said …

    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.

  19. on October 4, 2006 - י"ב תשרי תשס"ז at 9:38 am 19.Chajm said …

    Thanks again … Maybe that’s it… I’ll check the posting regarding an italian version of a website (somewhere on kosherjava). Maybe it helps…

  20. on October 4, 2006 - י"ב תשרי תשס"ז at 9:46 am 20.Chajm said …

    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”…

  21. on October 4, 2006 - י"ב תשרי תשס"ז at 10:54 am 21.KosherJava said …

    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.

  22. on October 4, 2006 - י"ב תשרי תשס"ז at 3:36 pm 22.Chajm said …

    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)…

  23. on October 23, 2006 - א' חשון תשס"ז at 7:06 am 23.Mike Miller said …

    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.

  24. on October 23, 2006 - ב' חשון תשס"ז at 10:38 pm 24.KosherJava said …

    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

  25. on October 23, 2006 - ב' חשון תשס"ז at 11:27 pm 25.Mike Miller said …

    [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, and get_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 ב’ מרחשון תשס”ז). I’ve put up a screen shot of the current config options as well.

  26. on February 4, 2007 - י"ז שבט תשס"ז at 10:09 pm 26.mikeage.net » Blog Archive » Wordpress and Hebrew Dates said …

    […] modified the Hebrew Dates plugin from KosherJava slightly, so that all configuration data is now stored in the database (not […]

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply