Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] what do you mean by this on date function?
#1

[eluser]xeroblast[/eluser]
got a problem when i upgrade my opensuse 11.1 to 11.2...

this is the line where the error appear...

Code:
<?php echo mdate("%F %j %Y",mysql_to_unix($profile->birthdate)); ?>

Quote:A PHP Error was encountered

Severity: Warning

Message: 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 'Asia/Manila' for 'PHT/8.0/no DST' instead

Filename: helpers/date_helper.php

Line Number: 376

Quote:A PHP Error was encountered

Severity: Warning

Message: 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/Manila' for 'PHT/8.0/no DST' instead

Filename: helpers/date_helper.php

Line Number: 94
#2

[eluser]xeroblast[/eluser]
i finally solved it by adding this line on my index.php

Quote:date_default_timezone_set(date_default_timezone_get());

i think, this problem occur in the new version of php coz a friend told me that there is something wrong with the date function in the new version of php...




Theme © iAndrew 2016 - Forum software by © MyBB