Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8646455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:48:47+00:00 2026-06-12T12:48:47+00:00

i have installed cakephp 1.3 which uses the following: Apache Version :2.2.21 PHP Version

  • 0

i have installed cakephp 1.3 which uses the following:
Apache Version :2.2.21
PHP Version : 5.3.8
MySQL Version : 5.5.16.
the Problem is when i echo the following

echo date('l jS \of F Y h:i:s A');
i get the time a few hours back than my local time( the machine time is set to my country time which australia).
when i make a change in php.ini file and set the date.timezone = UTC + 10 i get the correct local time but i also get alot of warnings.

Warning: strtotime() [function.strtotime]: 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 ‘Australia/Melbourne’ for ‘10.0/no DST’ instead in C:\wamp\www\cakephp\lib\Cake\Cache\Cache.php on line 515

Please help thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:48:48+00:00Added an answer on June 12, 2026 at 12:48 pm

    You cannot specify timezones as offset to UTC like "UTC+10" as you mentioned in your post. You have to use one of the valid timezone strings. Pick your continent here and you will get list of valid timezone strings.

    So for eg. in core.php you have to do:

    date_default_timezone_set("Australia/Melbourne");
    

    Change the timezone string to any other valid timezone string you like. By the way CakeTime::listTimezones() will also give you the list of timezones.

    Edit: You can probably specify the timezone as offset to UTC but shouldn’t.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have CakePHP 2 installed on my Apache 2 web server. I would like
I have installed PHP and its not working in the Apache Webserver. Steps followed
I have a site (built on LAMP (cakephp) and has ssl certificate installed) which
Renaming database.php.default to database.php in \app\Config\ in CAKEPHP gives Error I have installed a
I have just successfully installed CakePHP and I see that I can edit the
I have installed the following components of SQL Server 2012: management tools - complete
I have my cakephp 1.3 console installed on hostgator server using SSH. I baked
I'm using CakePHP 1.3.8, and I've installed the CakeDC Search plugin . I have
I have installed CakePHP in my test server and it is working fine. When
I have a CakePHP app which I have been developing on a remote server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.