brick / date-time

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

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

Open nkamuo opened 2 months ago

nkamuo commented 2 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 2 months ago

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

Making it easier to use generally.