简体   繁体   中英

PHP DateTime format Year bug

this is the first time i encountered this bug, i usually use the same syntax to format dates. but now, i don't know what happened to DateTime format.

I've tried searching some resources, including Carbon and php DateTime formatting. but no luck.

PS: i am using laravel and it automatically extends timestamps into Carbon instance.

在此处输入图片说明

i've figured it out. lol year was not in a correct format

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM