> I think a constructor aimed at time_zone => 'local' makes sense. If not > that, then perhaps a class variable for DEFAULT_TIMEZONE or somesuch.
DateTime->now( time_zone => 'local' ); vs. DateTime->local_now; Saves an incredible 18 characters even with generous spacing. > Also, regarding the issue of 'local' not always working: I'm not > convinced that hard-coding timezones into code is worth the tradeoff > (configuring your local timezone every time you install a module, for > instance). That will lead to weird errors and a mess of portability issues. Not to mention we don't want to support that mess. > I'm not going to insist that now() default to this, but the addition of > a constructor that does do this would personally save me a lot of typing. Put a macro in your editor. :) -J --
