Closed (fixed)
Project:
Calendar Systems
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
22 Feb 2010 at 08:52 UTC
Updated:
10 Jan 2017 at 12:32 UTC
Jump to comment: Most recent
Comments
Comment #1
bakr commentedGrerat Work and an equally vital project.
Congratulations for making it happen.
Comment #2
Marat commentedYou may also have a look at this #242965: Add support for pluggable calendars in Date API
Comment #3
sinasalek commentedThanks @Marat for mentioning.
I also have a question you may know. where are you from and what do you usually call your calendar system? Arabic , Islamic or Hijri ? Are arab countries call it with different names?
About the code, you code is easier to use but is it as accurate as the one i'm implementing?
PS : If you can put more information about your calendar system here http://groups.drupal.org/node/10607 that would be quite useful.
Comment #4
Marat commentedHi @sinasalek, I am from Saudi Arabia and the Hijri calender is the official calendar used by the government. We commonly call it 'Hijri' but not sure about other arab countries. I would say hijri is most likely used.
Regarding to the code, I didn't write it myself I just copied and pasted there. I am not a programmer so my contribution is just useless. Sorry for that.
The accuracy of hijri date would never be achieved because it depends on the moon sighting and where it is born, which a religious issue. Ummulqura (the official calender in Saudi Arabia www.ummulqura.org.sa) and islamic finder (www.islamicfinder.org) are well known reference for hijri calender and they just used calculation.
It might be simple, just replace the date using any conversion code. In addition to the codes mentioned in my previous comment, there are several more can be used, I pasted them with the header to be clear who wrote them.
or this class
or may be utilizing the Hijri date extension in Jooomla at http://extensions.joomla.org/extensions/core-enhancements/date-a-time/1740.
Comment #5
Marat commented@sinasalek, is there any news about adding Hijri date to this module? I am really looking forward to see it. Thank you.
This might help http://en.wikipedia.org/wiki/Islamic_calendar and http://www.gita.ir/products/calendar/gadget.aspx
Comment #6
sinasalek commentedI'm very busy with a project right now, but i'll implement it the first chance it get. probably within the next two months or even sooner.
Comment #7
sinasalek commentedGood news everyone, the hijri calendar system is under development, there is going to be a new alpha release quite soon :)
Comment #8
Marat commentedI am very glad to hear that, thanks @sinasalek!
Comment #9
bakr commentedKeep up the good work.!
Comment #10
sinasalek commentedFinally the first Beta release is available http://drupal.org/node/817192
Comment #11
sinasalek commentedFill free to open this issue again, if you had any problem
Comment #13
Sinovchi commentedI installed Hijri as a default calendar system. It works perfect. And I'd like to have a block with today's date.
for example
But this produces a date formated in Gregorian, not in Hijri. Could you help me please?
Comment #14
sinasalek commentedPlease do not post unrelated question on an already closed issue!
Also you should use drupal format_date function instead
Comment #15
sinasalek commentedMarked
Comment #16
fnb500 commentedThanks sinasalek. Great job.
for fix Hijri date(اصلاح التاريخ الهجري)
open this file
sites/all/modules/calendar_systems/calendar/v1/calendarSystems/arabic.class.inc.php
add this function
Comment #17
sinasalek commentedComment #18
sinasalek commented