{"action":"created","issue":{"url":"https://api.github.com/repos/pods-framework/pods/issues/4896","repository_url":"https://api.github.com/repos/pods-framework/pods","labels_url":"https://api.github.com/repos/pods-framework/pods/issues/4896/labels{/name}","comments_url":"https://api.github.com/repos/pods-framework/pods/issues/4896/comments","events_url":"https://api.github.com/repos/pods-framework/pods/issues/4896/events","html_url":"https://github.com/pods-framework/pods/issues/4896","id":320354955,"node_id":"MDU6SXNzdWUzMjAzNTQ5NTU=","number":4896,"title":"DateTime support for date strings in Arabic and other languages","user":{"login":"digicodexx","id":38987753,"node_id":"MDQ6VXNlcjM4OTg3NzUz","avatar_url":"https://avatars3.githubusercontent.com/u/38987753?v=4","gravatar_id":"","url":"https://api.github.com/users/digicodexx","html_url":"https://github.com/digicodexx","followers_url":"https://api.github.com/users/digicodexx/followers","following_url":"https://api.github.com/users/digicodexx/following{/other_user}","gists_url":"https://api.github.com/users/digicodexx/gists{/gist_id}","starred_url":"https://api.github.com/users/digicodexx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digicodexx/subscriptions","organizations_url":"https://api.github.com/users/digicodexx/orgs","repos_url":"https://api.github.com/users/digicodexx/repos","events_url":"https://api.github.com/users/digicodexx/events{/privacy}","received_events_url":"https://api.github.com/users/digicodexx/received_events","type":"User","site_admin":false},"labels":[{"id":153312,"node_id":"MDU6TGFiZWwxNTMzMTI=","url":"https://api.github.com/repos/pods-framework/pods/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":200503,"node_id":"MDU6TGFiZWwyMDA1MDM=","url":"https://api.github.com/repos/pods-framework/pods/labels/Help%20Wanted","name":"Help Wanted","color":"DDDDDD","default":false},{"id":302363031,"node_id":"MDU6TGFiZWwzMDIzNjMwMzE=","url":"https://api.github.com/repos/pods-framework/pods/labels/i18n","name":"i18n","color":"e102d8","default":false}],"state":"open","locked":false,"assignee":{"login":"sc0ttkclark","id":709662,"node_id":"MDQ6VXNlcjcwOTY2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/709662?v=4","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"assignees":[{"login":"sc0ttkclark","id":709662,"node_id":"MDQ6VXNlcjcwOTY2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/709662?v=4","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/pods-framework/pods/milestones/62","html_url":"https://github.com/pods-framework/pods/milestone/62","labels_url":"https://api.github.com/repos/pods-framework/pods/milestones/62/labels","id":1469364,"node_id":"MDk6TWlsZXN0b25lMTQ2OTM2NA==","number":62,"title":"Pods 2.9","description":"","creator":{"login":"sc0ttkclark","id":709662,"node_id":"MDQ6VXNlcjcwOTY2Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/709662?v=4","gravatar_id":"","url":"https://api.github.com/users/sc0ttkclark","html_url":"https://github.com/sc0ttkclark","followers_url":"https://api.github.com/users/sc0ttkclark/followers","following_url":"https://api.github.com/users/sc0ttkclark/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttkclark/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttkclark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttkclark/subscriptions","organizations_url":"https://api.github.com/users/sc0ttkclark/orgs","repos_url":"https://api.github.com/users/sc0ttkclark/repos","events_url":"https://api.github.com/users/sc0ttkclark/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttkclark/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":0,"state":"open","created_at":"2015-12-21T11:04:50Z","updated_at":"2018-06-04T21:27:09Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-05-04T17:19:05Z","updated_at":"2018-06-10T14:49:06Z","closed_at":null,"author_association":"NONE","body":"I’ve been having issues adding Date Post Types lately.\r\n\r\n```\r\nFatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (۱۳۹۷-۰۲-۱۴) at position 0 (�): Unexpected character in G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\classes\\fields\\datetime.php:668 Stack trace: #0 G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\classes\\fields\\datetime.php(668): DateTime->__construct(‘\\xDB\\xB1\\xDB\\xB3\\xDB\\xB9\\xDB\\xB7-\\xDB\\xB0\\xDB\\xB2-\\xDB…’) #1 G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\classes\\PodsForm.php(1506): PodsField_DateTime->createFromFormat(‘m/d/Y’, ”) #2 G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\ui\\fields\\date.php(38): PodsForm::field_method(‘date’, ‘createFromForma…’, ‘m/d/Y’, ”) #3 G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\classes\\PodsView.php(515): require(‘G:\\\\xampp\\\\htdocs…’) #4 G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\classes\\PodsView.php(116): PodsView::get_template_part(‘G:/xampp/htdocs…’, Array) #5 G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\includes\\classes.php(231): PodsView::view(‘G:\\\\xamp in G:\\xampp\\htdocs\\..\\wp-content\\plugins\\pods\\classes\\fields\\datetime.php on line 668\r\n```\r\n\r\n## Steps to Reproduce (for bugs)\r\nJust by simply adding a new CPT field.\r\n\r\n## Pods Package Export (helpful!)\r\n\r\n```\r\n{\"meta\":{\"version\":\"2.7.2\",\"build\":1525454173},\"pods\":{\"60\":{\"id\":60,\"name\":\"series\",\"label\":\"Series\",\"description\":\"\",\"type\":\"post_type\",\"storage\":\"meta\",\"object\":\"\",\"alias\":\"\",\"fields\":{\"series-title\":{\"id\":61,\"name\":\"series-title\",\"label\":\"series-title\",\"description\":\"\",\"help\":\"\",\"class\":\"\",\"type\":\"text\",\"weight\":0,\"pick_object\":\"\",\"pick_val\":\"\",\"sister_id\":\"\",\"required\":\"1\",\"text_allow_shortcode\":\"0\",\"text_allow_html\":\"0\",\"text_allowed_html_tags\":\"strong em a ul ol li b i\",\"text_max_length\":\"255\",\"pick_post_status\":[\"publish\"],\"admin_only\":\"0\",\"restrict_role\":\"0\",\"restrict_capability\":\"0\",\"hidden\":\"0\",\"read_only\":\"0\",\"roles_allowed\":[\"administrator\"],\"rest_read\":\"0\",\"rest_write\":\"0\",\"rest_pick_response\":\"array\",\"rest_pick_depth\":\"2\",\"unique\":\"0\",\"text_repeatable\":\"0\",\"text_placeholder\":\"\"},\"series-info\":{\"id\":62,\"name\":\"series-info\",\"label\":\"series-info\",\"description\":\"\",\"help\":\"\",\"class\":\"\",\"type\":\"wysiwyg\",\"weight\":1,\"pick_object\":\"\",\"pick_val\":\"\",\"sister_id\":\"\",\"required\":\"1\",\"wysiwyg_editor\":\"tinymce\",\"wysiwyg_media_buttons\":\"1\",\"wysiwyg_oembed\":\"0\",\"wysiwyg_wptexturize\":\"1\",\"wysiwyg_convert_chars\":\"1\",\"wysiwyg_wpautop\":\"1\",\"wysiwyg_allow_shortcode\":\"0\",\"pick_post_status\":[\"publish\"],\"admin_only\":\"0\",\"restrict_role\":\"0\",\"restrict_capability\":\"0\",\"hidden\":\"0\",\"read_only\":\"0\",\"roles_allowed\":[\"administrator\"],\"rest_read\":\"0\",\"rest_write\":\"0\",\"rest_pick_response\":\"array\",\"rest_pick_depth\":\"2\",\"unique\":\"0\",\"wysiwyg_repeatable\":\"0\",\"wysiwyg_allowed_html_tags\":\"\"},\"series-post-date\":{\"id\":63,\"name\":\"series-post-date\",\"label\":\"series-post-date\",\"description\":\"\",\"help\":\"\",\"class\":\"\",\"type\":\"date\",\"weight\":2,\"pick_object\":\"\",\"pick_val\":\"\",\"sister_id\":\"\",\"required\":\"1\",\"date_type\":\"format\",\"date_format\":\"mdy\",\"date_allow_empty\":\"1\",\"date_html5\":\"0\",\"pick_post_status\":[\"publish\"],\"admin_only\":\"0\",\"restrict_role\":\"0\",\"restrict_capability\":\"0\",\"hidden\":\"0\",\"read_only\":\"0\",\"roles_allowed\":[\"administrator\"],\"rest_read\":\"0\",\"rest_write\":\"0\",\"rest_pick_response\":\"array\",\"rest_pick_depth\":\"2\",\"unique\":\"0\",\"date_repeatable\":\"0\",\"date_format_custom\":\"\",\"date_format_custom_js\":\"\"}},\"show_in_menu\":\"1\",\"label_singular\":\"Series\",\"public\":\"1\",\"show_ui\":\"1\",\"supports_title\":\"1\",\"supports_editor\":\"1\",\"publicly_queryable\":\"1\",\"exclude_from_search\":\"0\",\"capability_type\":\"post\",\"capability_type_custom\":\"series\",\"capability_type_extra\":\"1\",\"has_archive\":\"0\",\"hierarchical\":\"0\",\"rewrite\":\"1\",\"rewrite_with_front\":\"1\",\"rewrite_feeds\":\"0\",\"rewrite_pages\":\"1\",\"query_var\":\"1\",\"can_export\":\"1\",\"default_status\":\"draft\",\"supports_author\":\"0\",\"supports_thumbnail\":\"0\",\"supports_excerpt\":\"0\",\"supports_trackbacks\":\"0\",\"supports_custom_fields\":\"0\",\"supports_comments\":\"0\",\"supports_revisions\":\"0\",\"supports_page_attributes\":\"0\",\"supports_post_formats\":\"0\",\"built_in_taxonomies_category\":\"0\",\"built_in_taxonomies_elementor_font_type\":\"0\",\"built_in_taxonomies_elementor_library_type\":\"0\",\"built_in_taxonomies_link_category\":\"0\",\"built_in_taxonomies_post_tag\":\"0\",\"show_in_nav_menus\":\"1\",\"show_in_admin_bar\":\"1\",\"pfat_enable\":\"0\",\"pfat_run_outside_loop\":\"0\",\"pfat_append_single\":\"append\",\"pfat_filter_single\":\"the_content\",\"pfat_append_archive\":\"append\",\"pfat_filter_archive\":\"the_content\",\"rest_enable\":\"0\",\"read_all\":\"0\",\"write_all\":\"0\"}}}\r\n```\r\n\r\n\r\n## WordPress Environment\r\n<details>\r\n```\r\nWordPress Version: 4.9.5\r\n\r\nPHP Version: 7.2.4\r\n\r\nMySQL Version: 5.5.5\r\n\r\nServer Software: Apache/2.4.33 (Win32) OpenSSL/1.1.0g PHP/7.2.4\r\n\r\nYour User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0\r\n\r\nSession Save Path: G:\\xampp\\tmp\r\n\r\nSession Save Path Exists: Yes\r\n\r\nSession Save Path Writeable: Yes\r\n\r\nSession Max Lifetime: 1440\r\n\r\nOpcode Cache:\r\n\r\n    Apc: No\r\n    Memcached: No\r\n    OPcache: No\r\n    Redis: No\r\n\r\nObject Cache:\r\n\r\n    APC: No\r\n    APCu: No\r\n    Memcache: No\r\n    Memcached: No\r\n    Redis: No\r\n\r\nWPDB Prefix: plz_\r\n\r\nWP Multisite Mode: No\r\n\r\nWP Memory Limit: 40M\r\n\r\nPods Network-Wide Activated: No\r\n\r\nPods Install Location: G:\\xampp\\htdocs\\ooo\\wp-content\\plugins\\pods/\r\n\r\nPods Tableless Mode Activated: No\r\n\r\nPods Light Mode Activated: No\r\n\r\nCurrently Active Theme: Astra\r\n\r\nCurrently Active Plugins:\r\n\r\n    Elementor: 2.0.9\r\n    Elementor Pro: 2.0.4\r\n    Header Footer Elementor: 1.0.12\r\n    Pods - Custom Content Types and Fields: 2.7.2\r\n    wp-jalali: 5.0.1\r\n```\r\n</details>\r\n"},"comment":{"url":"https://api.github.com/repos/pods-framework/pods/issues/comments/396054885","html_url":"https://github.com/pods-framework/pods/issues/4896#issuecomment-396054885","issue_url":"https://api.github.com/repos/pods-framework/pods/issues/4896","id":396054885,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjA1NDg4NQ==","user":{"login":"GaryJones","id":88371,"node_id":"MDQ6VXNlcjg4Mzcx","avatar_url":"https://avatars2.githubusercontent.com/u/88371?v=4","gravatar_id":"","url":"https://api.github.com/users/GaryJones","html_url":"https://github.com/GaryJones","followers_url":"https://api.github.com/users/GaryJones/followers","following_url":"https://api.github.com/users/GaryJones/following{/other_user}","gists_url":"https://api.github.com/users/GaryJones/gists{/gist_id}","starred_url":"https://api.github.com/users/GaryJones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaryJones/subscriptions","organizations_url":"https://api.github.com/users/GaryJones/orgs","repos_url":"https://api.github.com/users/GaryJones/repos","events_url":"https://api.github.com/users/GaryJones/events{/privacy}","received_events_url":"https://api.github.com/users/GaryJones/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T14:49:06Z","updated_at":"2018-06-10T14:49:06Z","author_association":"MEMBER","body":"I don't think even the `IntlDateFormatter` accepts non-Latin _input_, which is what's required here.\r\n\r\nI did find http://www.ar-php.org/, and [one of the pages](http://www.ar-php.org/features-php-arabic.html) is to [parse Arabic strings into DateTime](http://www.ar-php.org/I18N/Arabic/Examples/StrToTime.php) objects.\r\n\r\nThe [latest version](https://sourceforge.net/projects/ar-php/files/ar-php/Ar-PHP%20version%204.0/) is from 2016, and that parsing is made up of a couple of classes, and a couple of XML files - one of which translates, another which adds Hijri calendar corrections and so on. \r\n\r\nI don't think though that this Arabic input is necessarily core functionality - what about support for adding Korean, or Japanese, or Chinese or Hebrew or Greek other non-Latin scripts as _input_? Each of the respective locales (and even some from locales with Latin scripts) may have their own calendar / datetime variations that differ from Gregorian calendar used in Western countries.\r\n\r\nPods core could certainly ensure that RTL scripts _display_ correctly, but accepting localized values that are passed into to PHP core classes and functions is going to need a whole new section of code, or for it to be handled in a separate plugin.\r\n\r\nI don't know if the JS datepicker has the ability to pick and display in Arabic but submit in English."}}
{"actor":{"display_login":"GaryJones"}}