Configuring of a particular format for the datetime displayed by the Bridge to JIRA plugin is done using a classic WordPress filter.
The easiest is to have a parallel plugin of a few lines of code that will just add and implement the filter.
The filter name is btj_filter_datetime_format and it receives as input a PHP date. The implemented filter should transform this date into a printable string.
Here's a sample of what this filter may be:
add_filter('btj_filter_datetime_format', 'cbtj_datetime_format');
function cbtj_datetime_format($date) {
return date('Y/d/m H:i', $date);
}
The the following shortcode will display the datetime of the created JIRA issues in the desired format:
[btj-table fields="key,assignee,created" id="demonstrate-datetime-format"]project = DBTJ[/btj-table]
key | Assignee | Created |
---|---|---|
DBTJ-14 | ![]() | 2021/18/05 09:11 |
DBTJ-13 | ![]() | 2021/19/04 14:28 |
DBTJ-12 | ![]() | 2021/16/03 19:16 |
DBTJ-11 | ![]() | 2021/02/01 14:19 |
DBTJ-10 | ![]() | 2021/02/01 09:41 |
DBTJ-9 | ![]() | 2021/02/01 09:28 |
DBTJ-8 | ![]() | 2021/02/01 09:20 |
DBTJ-7 | ![]() | 2020/29/12 19:04 |
DBTJ-6 | ![]() | 2020/29/12 17:25 |
DBTJ-5 | ![]() | 2020/29/12 17:24 |
DBTJ-4 | ![]() | 2020/29/12 17:22 |
DBTJ-3 | ![]() | 2020/29/12 17:20 |
DBTJ-2 | ![]() | 2020/29/12 17:20 |
DBTJ-1 | ![]() | 2020/29/12 17:09 |