I have been going through every post in every forum for the past 2 days and I can’t get the date system to work with Kirby. I want to display the dates differently for 2 languages, but somehow I can’t figure out how to change the date format from “%Y-%m-%d”. The date format I want to change is related to a file (not a page). Would that change anything? I have tried every way I could think of, but I keep getting the error:
Warning: strftime() expects parameter 2 to be long, object given
when I try to change the format, or else I don’t get any errors and it just prints out in the format “%Y-%m-%d”.
What am I doing wrong?!
I try to print out the day using for example:
<?php echo strftime('%d',$file->date()) ?>
-> Gives me the error.
<?php echo strftime($file->date()) ?>
-> No errors at all, just prints out in the unwanted format.
I have tried changing the format in my blueprints, even setting c::set('date.handler', 'strftime');
in my config file, nothing works. Pleease help!