Wrong UTC date in “single_statistic” page
-
On the “single_statistic” page (and I don’t know where else) I have a problem with the dates.
The UTC date is displayed, not my time zone.
The problem I found on this file:
wp-content/plugins/perfect-survey/resources/backend/statistics/datagrid.php
[...] <table class="introdatabyip display" cellspacing="0"> <thead> <tr> <th><?php _e('Starting date', 'perfect-survey') ?></th> <th><?php _e('User', 'perfect-survey') ?></th> <th><?php _e('User IP', 'perfect-survey') ?></th> <th><?php _e('User', 'perfect-survey') ?></th> </tr> </thead> <tbody> <?php foreach($data as $record){ $user = $record['user_id']; ?> <tr> <td><?php echo $record['date'];?></td> <td><a href="<?php echo admin_url('edit.php?post_type='.PRSV_PLUGIN_CODE.'&page=single_statistic&id='.$ID.'&filters[user_id]='.$record['user_id'].'&filters[session_id]='.$record['session_id']);?>"><?php _e('View this survey', 'perfect-survey') ?></a></td> <td><?php echo $record['ip'] ? $record['ip'] : _e('IP not available'); ?></td> <?php if(!$user) { ?> <td><?php echo __('User', 'perfect-survey') . ' ' . __('not registered', 'perfect-survey') ;?></td> <?php } else { ?> <td><a href="<?php echo get_edit_user_link($user);?>"><?php echo $record['username'];?></a></td> <?php } ?> </tr> <?php } ?> </tbody> </table> [...]
More precisely to this line:
<td><?php echo $record['date'];?></td>
Can anyone suggest me how to go and fix it please? Tks
- The topic ‘Wrong UTC date in “single_statistic” page’ is closed to new replies.