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 8763681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:50:15+00:00 2026-06-13T15:50:15+00:00

Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings.

  • 0

Warning: date() [function.date]: 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 Asia/Calcutta for 5.5/no DST instead in E:\xampp\htdocs\suraj\central_db_system\dwnld_reg_data.php on line 8

And I resolved this warning by calling function

date_default_timezone_set('America/Los_Angeles');

But each time I have to add this function on each page.

Is there any other way to resolve this problem?

  • 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-13T15:50:17+00:00Added an answer on June 13, 2026 at 3:50 pm

    create a php file with the following code and you should be able to see what the property is currently set to:

    <?php phpinfo(); ?>
    

    php.ini is usually a massive text file so you’d have to just open it with a simple text editor and search for the setting.

    On my testing server the timezone setting looks like this:

    ;;;;;;;;;;;;;;;;;;;
    ; Module Settings ;
    ;;;;;;;;;;;;;;;;;;;
    
    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    date.timezone = UTC
    

    You’d just have to change ‘UTC’ to whatever timezone you need. Note: if your on a shared server with a hosting company you will probably not be able to edit the PHP ini yourself and the hosting company may refuse to do this but if ifs your own server you can change what you like.

    Be careful with php.ini, if you delete the wrong line it may stop php from working altogether. backup php.ini first is always wise.

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

Sidebar

Related Questions

I have this bug Warning: date() [function.date]: It is not safe to rely on
Possible Duplicate: PHP Configuration: It is not safe to rely on the system’s timezone
A PHP Error was encountered Severity: Warning Message: date() [function.date]: It is not safe
Possible Duplicate: PHP - It is not safe to rely on the system’s timezone
Warning: touch() [function.touch]: open_basedir restriction in effect. File() is not within the allowed path(s):
I'm geting when I just do phpinfo() Warning: phpinfo(): It is not safe to
Error: Warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 3: parser error : Input is not proper
Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'info', to be a valid callback in [...]
Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/happy/public_html/source/imap/fet_mail_from_email_add.php on line 7 can't connect:
Upgrading to a new server, I two repeated errors: Warning: strtotime() [function.strtotime]: It is

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.