nanodesigns / nanosupport

Create a fully featured Support Center in your WordPress setup without any third party dependency, completely FREE. Get a built-in Knowledgebase too. The plugin is available on WordPress.org repository:
https://wordpress.org/plugins/nanosupport/
GNU General Public License v2.0
50 stars 13 forks source link

how to change the time format in ticket center? #49

Closed fang-yu closed 6 years ago

fang-yu commented 6 years ago

The default time format in the ticket center is like : 30 Oct 2017 07:26PM, but this is English format, how could I change it to my country fomat like:

Thank!

mayeenulislam commented 6 years ago

Good point. But we're afraid, with v0.4.1, it's not possible as that portion's hard coded. But on the next release we'll use the WP Settings, so that user can get control, inshALLAH. Taking it as a limitation.

mayeenulislam commented 6 years ago

For Legacy datetime format, with this change on the next release (inshALLAH), user can modify as they want with, whether using the WordPress settings, or using the new filter hook: ns_date_time_format

add_filter('ns_date_time_format', function($format) {
    return 'd M Y h:i A';
});