PluginProbe
Super RSS Reader – Add attractive RSS Feed Widget / 4.7
Super RSS Reader – Add attractive RSS Feed Widget v4.7
trunk 0.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 3.0 3.1 3.2 4.0 4.0.1 4.1 4.2 4.3 4.4 4.4.1 4.5 4.6 4.7 4.8 All 33 releases
← All changes | includes/utilities.php +14 -0 4.44.7 View file →
@@ -28,9 +28,23 @@
28 28 return $content;
29 29
30 30 }
31 31
32 + public static function date_i18n( $format, $timestamp, $timezone ){
33 +
34 + try{
35 + $timezone = new DateTimeZone( trim( $timezone ) );
36 + }catch( Exception $e ) {
37 + $timezone = new DateTimeZone( 'UTC' );
38 + }
39 +
40 + $date = wp_date( $format, $timestamp, $timezone );
41 +
42 + return $date;
43 +
44 + }
45 +
32 46 }
33 47
34 48 SRR_Utilities::init();
35 49
36 50 ?>