Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder syco__'s Avatar
    Join Date
    Oct 2005
    Location
    Australia
    Posts
    194
    Thanks
    41
    Thanked 4 Times in 4 Posts

    Making a calander

    I have found my way to some cod that will give me some calender information that i will use to make a calender but i am getting an error and not sure how to get around it.

    My Code:
    PHP Code:
    <?php
    $search 
    unixtojd(mktime(0009162011));
    print_r(cal_from_jd($searchCAL_GREGORIAN));
    ?>
    One i dont know what its going by the 15th day seems strange but my maybe be due to my second problem a error i get in red on the loaded page.

    Code:
    Warning: mktime() [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Antarctica/Macquarie' for 'EST/10.0/no DST' instead in /home/syco/server/week6/cal.php on line 19
    I have tried using the suggested but still having problems is there another way to get around this?

    Any help would be great
    THANKS
    .pLeAd InSaNiTy.

  • #2
    Regular Coder syco__'s Avatar
    Join Date
    Oct 2005
    Location
    Australia
    Posts
    194
    Thanks
    41
    Thanked 4 Times in 4 Posts
    Code:
    date_default_timezone_set('Australia/Brisbane');
    That line fixes both problems. but now that i have it working i see its a big array with all the details with in it. Im having trouble getting out single results at a time. How would i do this?

    Thanks
    .pLeAd InSaNiTy.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •