We're Moving to a New Support Platform – Starting June 1st!
We’re excited to let you know that starting June 1st, we’ll be transitioning to a new support system that will be available directly on our product websites – Amelia, wpDataTables, and Report Builder. In fact, the new support platform is already live for Amelia and wpDataTables, and we encourage you to reach out to us there.
You'll always be able to reach us through a widget in the bottom right corner of each website, where you can ask questions, report issues, or simply get assistance.
While we still do not offer live support, a new advanced, AI-powered assistant, trained on our documentation, use cases, and real conversations with our team, is there to help with basic to intermediate questions in no time.
We're doing our best to make this transition smooth and hassle-free. After June 1st, this current support website will redirect you to the new "Contact Us" pages on our product sites.
Thanks for your continued support and trust – we’re excited to bring you an even better support experience!
Hi -- date formats prior to 2016 are showing up completely wrong (day/month wrong, and all years as 1900, also wrong).
I'm attaching our source spreadsheet. The column we use for dates in the WPDT is "Date General." Date has been formatted as "Text."
In the past we had a similar problem and were provided with this code workaround, which is no longer working:
THIS IS THE MODIFIED VERSION THAT USED TO FIX THE DATE PROBLEM (wp-content/plugins/wpdatatables/source/class.date.wpdatacolumn.php):
<?php
/**
* Class IntColumn is a child column class used
* to describe columns with float numeric content
*
* @author Alexander Gilmanov
*
* @since May 2012
*/
class DateWDTColumn extends WDTColumn {
protected $_jsDataType = 'date';
protected $_dataType = 'date';
public function __construct( $properties = array () ) {
parent::__construct( $properties );
$this->_dataType = 'date';
switch(get_option('wdtDateFormat')){
case 'd/m/Y':
case 'd.m.Y':
case 'd-m-Y':
case 'd.m.y':
case 'd-m-y':
$this->_jsDataType = 'date-eu';
break;
case 'd-m-Y':
$this->_jsDataType = 'date-dd-mmm-yyyy';
break;
}
}
public function prepareCellOutput( $content ) {
if(!is_array($content)){
if( !empty($content) && ( $content != '0000-00-00' ) ){
$date = new DateTime($content);
$formattedValue = $date->format(get_option('wdtDateFormat'));
}else{
$formattedValue = '';
}
}else{
$date = new DateTime($content);
$formattedValue = $date->format(get_option('wdtDateFormat'));
}
$formattedValue = apply_filters('wpdatatables_filter_date_cell', $formattedValue);
return $formattedValue;
}
public function getGoogleChartColumnType(){
return 'date';
}
}
?>
Hi CabrilloFestival,
Thank you for your purchase
Is this happening just for "Date General" column or also for other columns that have dates?
I just attached screenshots, but they looked totally creepy and not what I grabbed! What is going on over there?
Hi CabrilloFestival,
I can't see any screenshot.
Please provide me a temporary WP-admin login for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course we do not provide login data to third party. You can write credentials here just check PRIVATE so nobody can see it except us.
I deleted the screenshots as it looked like some sort of spyware was looking at my computer! They were not the screenshots I had captured, but rather other views of my computer's windows and settings. Really creepy. Made me suspicious, and for that reason I am not comfortable providing my login to your company.
However, WPDatatables is still the best solution I have found for our needs, so for now we will keep using it. Hopefully that situation was an anomaly, and we can trust WPDT!?
Hi CabrilloFestival,
I don't know what happened but I can guarantee that we are not using any spywares.
Yes you can trust wpDataTables. I took a look at your Excel file and if the problem with dates is happening just in Date General column just copy and paste Date custom column instead of Date General because they are differently formatted. As I see you are using same dates in both columns.