Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: iman_ebru on January 12, 2005, 02:55:53 PM

Title: bug in SMF calander
Post by: iman_ebru on January 12, 2005, 02:55:53 PM
hi,
in choose Administrator control panel > Edit Features and Options > Calendar, i want change minimum year to 1900.
calender know it, but do not show day's of month.

why minimum year must be  1970?

Title: Re: bug in SMF calander
Post by: Ben_S on January 12, 2005, 03:14:15 PM
Because it uses unix time stamp presumable, which started in 1970.
Title: Re: bug in SMF calander
Post by: iman_ebru on January 13, 2005, 10:22:22 AM
Quote from: Ben_S on January 12, 2005, 03:14:15 PM
Because it uses unix time stamp presumable, which started in 1970.

but i wrote a mod for convert Gregorian to shamsi calendar.

shamsi date in now 1383 (year)

how can i use this mod?
Title: Re: bug in SMF calander
Post by: Grudge on January 13, 2005, 01:25:44 PM
Assuming that shamsi calendar directly maps to georgian somehow (i.e same amount of days in a year etc), you'll have to just offset the current year before it gets sent to context. Basically, if 2005 is equal to 1381 then every time the year is used, deduct (2005-1381 = 624) years from it. If it's more complicated then that (i.e nothing like a standard year calendar), then you'd have to do something much more brutal.
Title: Re: bug in SMF calander
Post by: Aiapir.com on August 08, 2009, 10:39:13 AM
i have a big error in my community

http://www.simplemachines.org/community/index.php?topic=329408.new#new

now What if I do?