Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function showConvertedDate() {
- $('.admin_date_time').each(function () {
- let $this = $(this), timezone = moment().tz(moment.tz.guess()).format('Z');
- finalDate = moment.utc($this.data('date_time')).utcOffset(timezone).format('DD-MM-YYYY, HH:mm A'+' ('+timezone+')');
- $this.html(finalDate);
- });
- }
- class="text-sm admin_date_time" data-date_time="{{$answer['created_at']}}"
Add Comment
Please, Sign In to add comment