All of you please try to understand {segment_4} is not a variable. its taking 4th value from URL e.g. www.example.com/panel/vals/2015/09 i.e. 09
I am using mktime function in Expression engine but its giving incorrect month name even i have set localization setting from admin panel to india kolkata here is the code :-
<?php echo date('F', mktime(0, 0, 0, {segment_4}, 10));?>
here segment_4
is month in digit eg. 09 but its showing December it should be September I researched for it every where said that function is correct I have to set anything else in expression engine ?
One more thing when i used this code :-
echo date_default_timezone_get();
then its showing Europe/London even i have changed time zone in EE by india/kolkata
Thanks in advance