WordPress.org

Making WordPress.org

Changeset 8156


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

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

Fixes #4057.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-plugin-directory/inc/language-pack/class-build-listener.php

    r4016 r8156  
    4343        }
    4444
    45         $time = date( 'r' );
    46         $message = "_Time: {$time}_\nLanguage packs for {$args['plugin']} in process...\n";
     45        $timestamp = time();
     46        $message   = '';
    4747
    4848        // Build in a separate process.
     
    6464            'color'      => '#c32283',
    6565            'mrkdwn_in'  => [ 'text' ],
     66            'ts'         => $timestamp,
    6667        ];
    6768        $this->slack( $attachment );
  • 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 );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-theme-directory/inc/class-plugin.php

    r4091 r8156  
    6565     */
    6666    public function import_or_update_theme_on_status_change( $args ) {
    67         $time = date( 'r' );
    68         $message = "_Time: {$time}_\nImport of theme {$args['theme']} {$args['version']} in process...\n";
     67        $timestamp = time();
     68        $message   = '';
    6969
    7070        // Import in a separate process.
     
    8787            'color'      => '#82878c',
    8888            'mrkdwn_in'  => [ 'text' ],
     89            'ts'         => $timestamp,
    8990        ];
    9091        $this->slack( $attachment );
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-theme-directory/inc/language-pack/class-build-listener.php

    r4024 r8156  
    4343        }
    4444
    45         $time = date( 'r' );
    46         $message = "_Time: {$time}_\nLanguage packs for {$args['theme']} in process...\n";
     45        $timestamp = time();
     46        $message   = '';
    4747
    4848        // Build in a separate process.
     
    6464            'color'      => '#c32283',
    6565            'mrkdwn_in'  => [ 'text' ],
     66            'ts'         => $timestamp,
    6667        ];
    6768        $this->slack( $attachment );
Note: See TracChangeset for help on using the changeset viewer.