Skip to content

Instantly share code, notes, and snippets.

@davidmroth
Created June 27, 2020 03:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmroth/efb5bf9d5147529041ae2e94630953cd to your computer and use it in GitHub Desktop.
Save davidmroth/efb5bf9d5147529041ae2e94630953cd to your computer and use it in GitHub Desktop.
LearnDash Notification Fix
100 //date_default_timezone_set( get_option( 'timezone_string' ) );
101 //$result = date_i18n( $atts['format'], $completed_on );
102 $timezone = new DateTimeZone( get_option( 'timezone_string' ) );
103 $result = wp_date( $atts['format'], $completed_on, $timezone );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment