Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Account for GMT offset in transcript times.

  • Loading branch information...
commit 2b1e735bfb042cbd2126610d105daad034d771d2 1 parent 68c921a
Michael Sisk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 webcomic.php
View
4 webcomic.php
@@ -1580,9 +1580,9 @@ public function get_webcomic_transcript_info( $i ) {
elseif ( 'id' == $i )
$r = $post->ID . '-' . $webcomic_transcript->language_code;
elseif ( 'the_date' == $i )
- $r = date( get_option( 'date_format' ), $webcomic_transcript->time );
+ $r = date( get_option( 'date_format' ), ( $webcomic_transcript->time + ( get_option( 'gmt_offset' ) * 3600 ) ) );
elseif ( 'the_time' == $i )
- $r = date( get_option( 'time_format' ), $webcomic_transcript->time );
+ $r = date( get_option( 'time_format' ), ( $webcomic_transcript->time + ( get_option( 'gmt_offset' ) * 3600 ) ) );
else
$r = false;
Please sign in to comment.
Something went wrong with that request. Please try again.