I tried all the other possible solutions posted, but none of them helped. This is what helped me save my timezone settings:
1) Go to your phpinfo()
page and search for Loaded Configuration File
and open the php.ini
file mentioned under that section.
2) Change the default timezone settings by adding your new timezone by modifying this line: date.timezone=Asia/Kolkata
.
3) Save the php.ini
file and stop the Apache server.
4) Restart the Apache server. The timezone settings should now be modified.
Related Posts:
- How do I get the current date and time in PHP?
- NOW() function in PHP
- Difference between UTC and GMT
- Datetime strptime in python
- How to get current timestamp in string format in Java? “yyyy.MM.dd.HH.mm.ss”
- How to get the current date/time in Java [duplicate]
- Getting today’s date in YYYY-MM-DD in Python?
- What’s the difference between ISO 8601 and RFC 3339 Date Formats?
- How to get the current date/time in Java
- How to get the current time in Python
- How do I do a Date comparison in Javascript?
- Converting string to Date and DateTime
- Finding the number of days between two dates
- Compare given date with today
- Is there a difference between the UTC and Etc/UTC time zones?
- Converting between java.time.LocalDateTime and java.util.Date
- Object of class DateTime could not be converted to string
- Convert from MySQL datetime to another format with PHP
- Convert DateTime to String PHP
- Adding hours to JavaScript Date object?
- Creating a range of dates in Python
- PHP: date function to get month of the current date
- Convert hex color to RGB values in PHP
- Calculate business days
- Replace ' and similar html codes with their correspondent character?
- Google Calendar API event update always return 404 “not found” error
- How to prevent the “Confirm Form Resubmission” dialog?
- navigate back with PHP form submission
- How to set 777 permission on a particular folder? [closed]
- How do I make a redirect in PHP?
- How to use mysqli_query() in PHP?
- How do I make a redirect in PHP?
- List of All Locales and Their Short Codes?
- Difference between “as $key => $value” and “as $value” in PHP foreach
- How do I get a YouTube video thumbnail from the YouTube API?
- What is a slug?
- Visual list of all installed fonts with respective pangram phrase?
- How to add elements to an empty array in PHP?
- Converting string into datetime
- Converting string into datetime
- What do ++ and *+ mean?
- How to avoid Request Entity Too Large 413 error
- How to log in to phpMyAdmin with WAMP, what is the username and password?
- Array to String PHP?
- Python datetime to string without microsecond component
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- Undefined function mysql_connect()
- MySQL column count doesn’t match value count at row 1 [closed]
- Matching a space in regex
- Undefined function mysql_connect()
- How can I send an email using PHP?
- Fatal error: Call to undefined function mysql_connect()
- Should I use mysqli_real_escape string() or mysql_real_escape_string() for form data?
- count() parameter must be an array or an object that implements countable in laravel
- count(): Parameter must be an array or an object that implements Countable error in php
- SQL query to select dates between two dates
- Go Back to Previous Page
- Convenient way to deal with ValueError: cannot reindex from a duplicate axis
- How do I check if a string contains a specific word?
- count() parameter must be an array or an object that implements countable in laravel
- How do I replace part of a string in PHP? [duplicate]
- How to declare a global variable in php?
- count(): Parameter must be an array or an object that implements Countable error in php
- How to fix “Headers already sent” error in PHP
- regex match any whitespace
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- How to fix “Headers already sent” error in PHP
- How to pop an alert message box using PHP?
- Converting string into datetime
- currently unable to handle this request HTTP ERROR 500
- PHP page redirect
- Fatal error: Call to undefined function mysql_connect()
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- Compare two dates with JavaScript
- PHP 7.2 – Warning: count(): Parameter must be an array or an object that implements Countable
- How to fix ‘Notice: Undefined index:’ in PHP form action
- Where can I find php.ini?
- Whoops, looks like something went wrong. Laravel 5.0
- PHP “or” Syntax
- PHP “php://input” vs $_POST
- How do I convert a string to a number in PHP?
- Fatal error: Call to undefined function mysql_connect()
- How to fix “Headers already sent” error in PHP
- Loop through an array php
- “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” using PHP
- What are namespaces?
- Get the full URL in PHP
- What Does This Mean in PHP -> or =>
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- PDOException SQLSTATE[HY000] [2002] No such file or directory
- Converting a String to DateTime
- PHP header(Location: …): Force URL change in address bar
- PHP – Move a file into a different folder on the server
- phpMyAdmin Error: The mbstring extension is missing. Please check your PHP configuration
- Does PHP supports MVP pattern?
- Mysql query- How to use contains?
- Form submission: PHP S_SESSION statements within a foreach loop
- How do I get PHP errors to display?
- S_SESSION variable (user role) not recognised