Page Index Toggle Pages: 1
Topic Tools
Normal Topic YaBB A.D./B.E. Options (Read 1,658 times)
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: YaBB A.D./B.E. Options
Reply #3 - Jun 15th, 2009 at 12:56am
Post Tools
You can try this in Sources/DateTime.pl

Edit the file and add the highlighted.
Code
Select All
	my ($newsecond, $newminute, $newhour, $newday, $newmonth, $newyear, $newweekday, $newyearday, undef) = gmtime($oldformat + (3600 * $toffs));
	$newmonth++;
	$newyear += 1900 + 543; 


This should do it in most cases.

Please give feedback.
  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
mtagoon
Junior Member
**
Offline



Posts: 98
Location: Bangkok 10210, Thailand
Re: YaBB A.D./B.E. Options
Reply #2 - May 6th, 2009 at 6:44pm
Post Tools
FYI
Ref. : http://en.wikipedia.org/wiki/Buddhist_calendar

Four eras were/are used:
     - Anchansakarat, from 10 March 691 BC (rarely used),
     - Buddhasakarat, Buddhist Era or BE, from 11 March 545 BC, believed to be the date of the death of the Buddha. (BE–AD of 544 used to be common, but BE–AD is now 543 in Thailand, beginning after April before 1940, then began and still begins 1 January),
     - Mahasakarat from 17 March 78 (same as the Saka Era in India, used in Thailand until the mid-13th century, standard in Cambodia),
     - Chulasakarat from 22 March 638 (adopted in Thailand mid-13th century, standard in Burma).

The Buddhist calendar is used on mainland Southeast Asia in the countries of Cambodia, Laos, Thailand, Myanmar(Burma) and Sri Lanka in several related forms. The vast majority of the Thai populations adheres to Theravada Buddhism. The Thais count their years in the Buddhist Era. At present we are in the year 2552. The Buddhist calendar is 543 years ahead of the Christian calendar.

Thanks
  
Back to top
WWW  
IP Logged
 
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,015
Location: Rock Hill, South Carolina

None
Re: YaBB A.D./B.E. Options
Reply #1 - May 6th, 2009 at 5:23pm
Post Tools
What is B.E.?  Is that the opposite of B.C.?  Don't know why you'd want 2009 to become the year 2552.

Normally you have BC and AD or BCE and CE.  But why does YaBB need to care?
  

Back to top
IP Logged
 
mtagoon
Junior Member
**
Offline



Posts: 98
Location: Bangkok 10210, Thailand
YaBB A.D./B.E. Options
May 6th, 2009 at 3:29pm
Post Tools
YaBB A.D./B.E. Options

It would be great  if YaBB had in the YaBB Admin Center (YaBB Admin Center --> Forum Settings --> General) the following Options:

     I. Select default Era Format:
           - A.D.
           - B.E.
     II. Select default Day/Month/Year Format: [For A.D.]
           - 01/31/09
           - 01.31.09
           - 01-31-09
           - Jan 19th, 2009
           - 31. Jan
           - 31 January 2009
           - 31/01/09
           - 31.01.09
           - 31-01-08
     III. Select default Day/Month/Year Format: [For B.E.]
           - 01/31/52
           - 01.31.52
           - 01-31-52
           - Jan 19th, 2552
           - 31. Jan
           - 31 January 2552
           - 31/01/52
           - 31.01.51
           - 31-01-51
     IV. Select default Time Format:
           - 23:59:59
           - 23:59
           - 1:59pm

Thanks to the YaBB Team
Smiley
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top