Remove "pubdate" attribute from Submitted Time tag in Drupal 7 Currently when a node or comment is submitted it gets a Submitted text saying "Submitted by user on Wed, 04/01/2015 - 18:07"

The mark-up for this is:

&lt;span&gt;Submitted by *user* on &lt;time pubdate="pubdate" datetime="2015-04-01T18:07:34+0000"&gt;Wed, 04/01/2015 - 18:07&lt;/time&gt;&lt;/span&gt;


What I need to do is remove the "pubdate" attribute from the tag because the it is failing on W3C validation.

I have tried to add the following code in my template.php file but had no luck

function ThemeName_preprocess_node(&amp;$variables) {
    $attributes['datetime'] = '&lt;time'.drupal_attributes($attributes) .'&gt;'.$variables['date'] . '&lt;/time&gt;';
}


How can I remove the "pubdate" attribute in the Submitted by tag?
So `$variables['submitted'] is the one you want to override in your theme's preprocess_node function. Try this as a starting point:

function ThemeName_preprocess_node(&amp;$variables) {
  $variables['submitted'] = t('Submitted by !username', array('!username' =&gt; $variables['name']));
}


Which will replace the $submitted variable with "Submitted by username" (where the username will be linked to the user's profile page).