wp_timezone_override_offset [ WordPress Function ]
wp_timezone_override_offset ( No parameters )
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: iso8601_timezone_to_offset, wp_timezone_choice, _wp_timezone_choice_usort_callback, wp_timezone_supported, wp_convert_widget_settings
gmt_offset modification for smart timezone handling.
Overrides the gmt_offset option if we have a timezone_string available.
Source
<?php
function wp_timezone_override_offset() {
if ( !$timezone_string = get_option( 'timezone_string' ) ) {
return false;
}
$timezone_object = timezone_open( $timezone_string );
$datetime_object = date_create();
if ( false === $timezone_object || false === $datetime_object ) {
return false;
}
return round( timezone_offset_get( $timezone_object, $datetime_object ) / 3600, 2 );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- WordPress › Support » Tags — wp_timezone_override_offset
Username or Email Address Password (forgot?) Register · WordPress › Support » wp_timezone_override_offset. Tag: wp_timezone_override_offset Add New » ...
wordpress.org - wp_timezone_override_offset | A HitchHackers guide through ...
Feb 12, 2011 ... function wp_timezone_override_offset() { if ( !$timezone_string = get_option( ' timezone_string' ) ) { return false; } $timezone_object ...
hitchhackerguide.com - wp_timezone_override_offset() WordPress function reference ...
gmt_offset modification for smart timezone handling.
queryposts.com - wp_timezone_override_offset (WordPress Function) - WPSeek.com
WordPress lookup for wp_timezone_override_offset, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com
Gebruikersdiscussies [ wordpress.org ]
- stephenju on "PHP Function date() being manipulated by WP?"
- mrmist on "PHP Function date() being manipulated by WP?"
- nootron on "PHP Function date() being manipulated by WP?"
- thetooon on "PHP Function date() being manipulated by WP?"
- Maxaud on "PHP Function date() being manipulated by WP?"
- Rev. Voodoo on "PHP Function date() being manipulated by WP?"
- levani01 on "PHP Function date() being manipulated by WP?"
- mediaseth on "PHP Function date() being manipulated by WP?"
- LucasMS on "PHP Function date() being manipulated by WP?"
- LucasMS on "PHP Function date() being manipulated by WP?"