PDA

View Full Version : Hijri date


ViViD
06-29-2007, 07:10 AM
Hello ,
Our country in middle east has a different offical date than christian date . There is a php function for conversion of this dates to eachother . But I don't know where is the best place to add this function . We were add this function to functions.php but after version 3 , the admincp gets the date from functions.php and when I edit a user , the all dates changes to 1970 after saving because of an invalid date of functions.php delieverd.

Please guide me where is the best place to have an addintional date field or conversion of current field ... I am not proffesional in php but have some playing with it .

Thanks for your help

Zachery
06-29-2007, 08:17 AM
Is it not possible for you to set the date style in the admincp/language ?

ViViD
07-01-2007, 07:32 AM
No , It's not just a style like "MM DD YY" or "YY DD MM" , For example ... Our official today date is : 1386 . 04 . 10 as "YYYY , MM , DD" . I should convert 2007 to 1386 and there is a ready php formula for it.

Thanks for your attention .