brick / date-time

Date and time library for PHP
MIT License
337 stars 30 forks source link

LocalDate::now($timezone /*= system TimeZone*/) #113

Open nkamuo opened 3 months ago

nkamuo commented 3 months ago

The LocalDate::new(), LocalTime::new() and LocalDateTime::new() all require the timezone parameter. It would be a lot easier to use if the ::now() method's timezone parameter is optional and defaults to the configured php TimeZone.

zjbarg commented 3 months ago

that's kinda what I'm referring to in #111

Making it easier to use generally.