Open jonathanstegall opened 5 years ago
giving this a start with commits 7dc14c2cf6229fa272aab22e1f939aeded56efdf, f6bc61325b6388bbb0f9ca52bbe893243ac99277, and 1466612d127e94c36c57ef5b32f57d4a1167744b.
In WordPress 5.3, dates got a lot of improvements, as mentioned in #327. Need to make sure that whatever we do takes advantage of this.
Is your feature request related to a problem? Please describe. Yes. Currently the plugin tries to use the default date format in WordPress whenever possible. This can cause issues though, especially with other plugins. Here's an example forum post on this.
Describe the solution you'd like When mapping a field in the admin, if the plugin is able to detect that the field is a date field in Salesforce, we could expose a field for the date format. Users could then type in a valid PHP date format. From there, whenever the plugin tried to save data into WordPress, it would use that date format instead of the default WP format.
Describe alternatives you've considered Currently this can be done with the
object_sync_for_salesforce_push_params_modify
hook, but there's no exposure in the admin for this problem.