bug in SMF calander

Started by iman_ebru, January 12, 2005, 02:55:53 PM

Previous topic - Next topic

iman_ebru

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?


Ben_S

Because it uses unix time stamp presumable, which started in 1970.
Liverpool FC Forum with 14 million+ posts.

iman_ebru

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?

Grudge

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.
I'm only a half geek really...

Aiapir.com

he coming soon ...
Computer Students Association of Specialized [nofollow] |   Computer Students Association of Specialized [nofollow] | * [nofollow]
[nofollow]

Advertisement: