{"action":"closed","issue":{"url":"https://api.github.com/repos/johnstray/gs-blog/issues/29","labels_url":"https://api.github.com/repos/johnstray/gs-blog/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/johnstray/gs-blog/issues/29/comments","events_url":"https://api.github.com/repos/johnstray/gs-blog/issues/29/events","html_url":"https://github.com/johnstray/gs-blog/issues/29","id":42115447,"number":29,"title":"Better handling of date/time formats for different languages.","user":{"login":"johnstray","id":7572507,"avatar_url":"https://avatars.githubusercontent.com/u/7572507?v=3","gravatar_id":"","url":"https://api.github.com/users/johnstray","html_url":"https://github.com/johnstray","followers_url":"https://api.github.com/users/johnstray/followers","following_url":"https://api.github.com/users/johnstray/following{/other_user}","gists_url":"https://api.github.com/users/johnstray/gists{/gist_id}","starred_url":"https://api.github.com/users/johnstray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnstray/subscriptions","organizations_url":"https://api.github.com/users/johnstray/orgs","repos_url":"https://api.github.com/users/johnstray/repos","events_url":"https://api.github.com/users/johnstray/events{/privacy}","received_events_url":"https://api.github.com/users/johnstray/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/johnstray/gs-blog/labels/Enhancement","name":"Enhancement","color":"207de5"},{"url":"https://api.github.com/repos/johnstray/gs-blog/labels/Languages","name":"Languages","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"johnstray","id":7572507,"avatar_url":"https://avatars.githubusercontent.com/u/7572507?v=3","gravatar_id":"","url":"https://api.github.com/users/johnstray","html_url":"https://github.com/johnstray","followers_url":"https://api.github.com/users/johnstray/followers","following_url":"https://api.github.com/users/johnstray/following{/other_user}","gists_url":"https://api.github.com/users/johnstray/gists{/gist_id}","starred_url":"https://api.github.com/users/johnstray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnstray/subscriptions","organizations_url":"https://api.github.com/users/johnstray/orgs","repos_url":"https://api.github.com/users/johnstray/repos","events_url":"https://api.github.com/users/johnstray/events{/privacy}","received_events_url":"https://api.github.com/users/johnstray/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/johnstray/gs-blog/milestones/5","labels_url":"https://api.github.com/repos/johnstray/gs-blog/milestones/5/labels","id":779445,"number":5,"title":"Version 3.3.2","description":"Release of version 3.3.2 to the general public via GS Extend. This is a bugfix release fixing any bugs that may be found in the last major update.","creator":{"login":"johnstray","id":7572507,"avatar_url":"https://avatars.githubusercontent.com/u/7572507?v=3","gravatar_id":"","url":"https://api.github.com/users/johnstray","html_url":"https://github.com/johnstray","followers_url":"https://api.github.com/users/johnstray/followers","following_url":"https://api.github.com/users/johnstray/following{/other_user}","gists_url":"https://api.github.com/users/johnstray/gists{/gist_id}","starred_url":"https://api.github.com/users/johnstray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnstray/subscriptions","organizations_url":"https://api.github.com/users/johnstray/orgs","repos_url":"https://api.github.com/users/johnstray/repos","events_url":"https://api.github.com/users/johnstray/events{/privacy}","received_events_url":"https://api.github.com/users/johnstray/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2014-09-05T07:56:55Z","updated_at":"2015-02-08T12:51:41Z","due_on":"2015-02-27T14:30:00Z","closed_at":null},"comments":0,"created_at":"2014-09-06T12:18:57Z","updated_at":"2015-02-08T12:51:41Z","closed_at":"2015-02-08T12:51:41Z","body":"To better handle the format of dates in the plugin, add a new string to each language file with that languages date format, then use the i18n() function to get the format.\r\n\r\nExample language file:\r\n```php\r\n$i18n = array(\r\n    \"DATE_FORMAT' => '%d %b %Y',\r\n);\r\n```\r\n\r\nExample usage in a date function:\r\n```php\r\ndate ( i18n_r ( BLOGFILE.'/DATE_FORMAT' ) , time() );\r\n```"}}