WordPress.org

Making WordPress.org


Ignore:
Timestamp:
01/28/2019 07:45:42 PM (19 months ago)
Author:
ocean90
Message:

Translate: Use the ts field for timestamps in Slack notifications.

Fixes #4057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/sync/class-translation-sync.php

    r7175 r8156  
    8888        $sub_project_counterpart = $this->project_mapping[ $sub_project ];
    8989
    90         $time = date( 'r' );
    91         $message = "_Time: {$time}_\nTranslation sync from {$sub_project} to {$sub_project_counterpart} in process...\n";
    92         $updates = 0;
     90        $timestamp = time();
     91        $message   = '';
     92        $updates   = 0;
     93
    9394        foreach ( $translation_sets as $translation_set ) {
    9495            if ( 0 == $translation_set->current_count() ) {
     
    122123            'color'      => '#00a0d2',
    123124            'mrkdwn_in'  => [ 'text' ],
     125            'ts'         => $timestamp,
    124126        ];
    125127        $this->slack( $attachment );
Note: See TracChangeset for help on using the changeset viewer.