Feature Request #3035
Timezone and timestamp format (used in Kohana_Log) should be available system-wide.
|Assignee:||Matt Button||% Done:|
Timezone and timestamp format right now are hard coded in Kohana_Log. Let's put 'em into Kohana_Date instead, so they are available for the app and the modules to use.
Here are the two commits that add this feature.
#6 Updated by Matt Button almost 4 years ago
- % Done changed from 100 to 60
Kiall Mac Innes wrote:
Well - creating a new Date::format() or w/e method is also an API change? Lets see how this progresses before I open a second ticket.
I meant in the sense that if someone's created a log driver which expects the passed date to be a formatted string then their log driver could potentially break.
#7 Updated by Matt Button almost 4 years ago
- Status changed from Assigned to Closed
- % Done changed from 60 to 100
- Resolution set to fixed
Merged in fred's commits:
Added a few small fixes:
It's worth noting that Kohana_Log::$timezone has now gone (moved to Date::$timezone), which is technically a small api break though it shouldn't be a big problem...
#8 Updated by Matt Button almost 4 years ago
After discussion with Isaiah re-added the timezone property to Kohana_Log to maintain backwards compatability