]> git.mjollnir.org Git - s9y.git/commitdiff
a small bug fixed
authoromidmottaghi <omidmottaghi>
Sat, 26 Nov 2005 22:48:12 +0000 (22:48 +0000)
committeromidmottaghi <omidmottaghi>
Sat, 26 Nov 2005 22:48:12 +0000 (22:48 +0000)
include/functions_calendars.inc.php

index 5ee6d2ad1dad5f3481f8b255cced24f566cb14a2..fe3480276a32fcc64a8dc2f08bc631b48fb68794 100644 (file)
@@ -396,7 +396,7 @@ function jalali_date_utf($format, $timestamp) {
 }
 
 /**
- * Create a Jalali timestamp from a Gregorian timestamp
+ * Create a Unix timestamp for a Jalali date
  *
  * @author Omid Mottaghi
  * @access public
@@ -409,7 +409,7 @@ function jalali_date_utf($format, $timestamp) {
  * @param   int is daylight savings time set?
  * @return  int returned timestamp
  */
-function jalali_mktime($hour=0, $min=0, $sec=0, $mon=1, $day=1, $year=1970, $is_dst=-1){
+function jalali_mktime($hour=0, $min=0, $sec=0, $mon=1, $day=1, $year=1349, $is_dst=-1){
     list($year, $mon, $day)=j2g($year, $mon, $day);
     return mktime($hour, $min, $sec, $mon, $day, $year, $is_dst);
 }