vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Hijri date (https://vborg.vbsupport.ru/showthread.php?t=150939)

ViViD 06-29-2007 07:10 AM

Hijri date
 
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 .


All times are GMT. The time now is 12:39 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01026 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete