jamesmills / laravel-timezone

Enable user Timezones in your application.
MIT License
677 stars 91 forks source link

Accepting null as the first param of the convertToLocal method. #19

Closed amandiobm closed 4 years ago

amandiobm commented 4 years ago

Accepting null as the first param of the convertToLocal method.

jamesmills commented 4 years ago

Why would the date/time ever be null?

amandiobm commented 4 years ago

Have some use cases.

When using SoftDeletes trait, by default the column deleted_at is null. (Which is this that is breaking right now hehe )

I also have a list that contains three different dates, and all of them could be null as well. Once is null it will break the directive.