Make WordPress Core

Ticket #37440: 37440.patch

File 37440.patch, 596 bytes (added by rahulsprajapati, 8 years ago)

changed date function to gmdate as gmt is true.

  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index 676ce8c..48136e2 100644
    a b function current_time( $type, $gmt = 0 ) { 
    6565                case 'timestamp':
    6666                        return ( $gmt ) ? time() : time() + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );
    6767                default:
    68                         return ( $gmt ) ? date( $type ) : date( $type, time() + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) );
     68                        return ( $gmt ) ? gmdate( $type ) : date( $type, time() + ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ) );
    6969        }
    7070}
    7171