Time displayed as GMT for IOS Devices
Time displayed as GMT for IOS Devices
I have several Date/Time fields in my DataTable, where I render the date in the following format: "MM/DD/YY HH:MM AP" (i.e. 6/20/2018 3:38 PM).
{
"data": null,
"visible": true,
"render": function (data, type, full, meta) {
return formatDate(data.arrival, false, 1);
}
},
This works, as expected, on all platforms, devices & browsers except IOS devices (used Safari & Chrome). We've used an iPad & iPhone (both IOS version 11.4), and the Date/Time is always represented as GMT.
FYI, I have Date/Time fields outside of the DataTables which appear correctly, so I'm assuming it's a combination of IOS and DataTables.
Is there something I'm missing or doing incorrectly?
Thank you
Answers
Could you link to a page showing the issue please? Also, can you show us your
formatDate()
function since I guess the problem might be there.Allan
Thanks Allan!! The site, isn't currently ready for public consumption. When it's available and if this problem still exists, I'll gladly share it. In the meantime, here's the formatDate function:
Could you give me a sample of the
sDate
value you are giving the function and I'll see what happens when I run it locally?Thanks,
Allan
It's a SQL smalldatetime value. One example value is "2018-06-19 12:26:00".
Thanks again for you effort!!