Problem/Motivation

Some SensorPlugins have a hardcoded raw php function to formate the date.

Proposed resolution

Use Drupal's format date API instead.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#5 use_drupal_s_format-2603272-5.patch3.83 KBedurenye

Comments

edurenye created an issue. See original summary.

edurenye’s picture

miro_dietiker’s picture

miro_dietiker’s picture

The other issue got committed. Please fix all the dates in verbose output.

edurenye’s picture

Title: Use Drupal's format date API in DatabaseAggregatorSensorPlugin » Use Drupal's format date API in some SensorPlugins
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new3.83 KB

Fixed all cases, that was WatchdogAggregatorSensorPlugin and UserIntegritySensorPlugin.

edurenye’s picture

Title: Use Drupal's format date API in some SensorPlugins » Use Drupal's format date API in all the SensorPlugins
miro_dietiker’s picture

Status: Needs review » Fixed

Committed, thx.

Followup: I think we should add a test where we check the date output... We can use the fake log records that we already write. Put a date there and check their corresponding date on the output.

edurenye’s picture

Status: Fixed » Needs work

The last submitted patch, 5: use_drupal_s_format-2603272-5.patch, failed testing.

giancarlosotelo’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.