[Plugin: Facebook] Why does the plugin use "c" Instead Of "Y-m-d\TH:i:sP"?
-
Relevant File:
/wp-content/plugins/facebook/fb-open-graph.php
Code in question:
$meta_tags['https://ogp.me/ns/article#published_time'] = get_the_date('c'); $meta_tags['https://ogp.me/ns/article#modified_time'] = get_the_modified_date('c');
Why does the plugin use “
c
” instead of something like “Y-m-d\TH:i:sP
“?“
c
” outputs the right time but WRONG time zone (always UTC), if you haven’t noticed it. “Y-m-d\TH:i:sP
” on the other hand outputs the timestamp in the same format as “c
” but with the right timezone (respecting the settings in WordPress Dashboard > Settings > General).Please fix this, or give an explanation with regards to your choice. Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Facebook] Why does the plugin use "c" Instead Of "Y-m-d\TH:i:sP"?’ is closed to new replies.