Closed sobhanatar closed 6 years ago
Problem is in your datetime formats
m
: Month number
i
: minutes
at first line, your format has one extra space too. fix these problems an try again
Thanks morilog again
I should have understanded it from fix 08
in all time parts
Hi Thanks for such a nice library. I was previously using this library on L5.4 and everything was fine. Recently I switched to L5.5 and there is some weird thing happen.
When I insert my data in database I have the correct time(ex: 2017-10-25 10:35:34). I made a
getAttributeStartDateTime($value)
andgetAttributeEndDateTime($value)
and use below functions alternatively to get the date and time in jalali format:I changed all possible formats and the result is always the same. whatever I put in database the result of this function is
XX:08:00
.By this I mean if I have
09:34:45
or23:15:24
in database the result will be09:08:00
and23:08:00
accordingly.I would appreciate if you help me on this matter