var ajustaData = function( sDateId )
{

	if ( !document.getElementById( sDateId ) )
	{
		return;
	}

	var sDate = document.getElementById( sDateId ).firstChild.nodeValue;
	var erPtBrDateFormat = /(\d+)\/(\d+)\/(\d+)\s*?(\d+):(\d+).*?/gim;
	
	if ( erPtBrDateFormat.test( sDate ) == false )
	{
		return;
	}
	erPtBrDateFormat.lastIndex = 0;
	
	var aDateSections = erPtBrDateFormat.exec( sDate );
	if ( aDateSections[1].length == 1 )
	{
		aDateSections[1] = "0" + aDateSections[1];
	}
	if ( aDateSections[2].length == 1 )
	{
		aDateSections[2] = "0" + aDateSections[2];
	}
	if ( aDateSections[3].length == 2 )
	{
		aDateSections[3] = "20" + aDateSections[3];
	}
	if ( aDateSections[4].length == 1 )
	{
		aDateSections[4] = "0" + aDateSections[4];
	}
	if ( sDate.indexOf( "PM" ) != -1 )
	{
		aDateSections[4] = parseInt( aDateSections[4] ) + 12;
	}
	if ( aDateSections[5].length == 1 )
	{
		aDateSections[5] = "0" + aDateSections[5];
	}
	
	// Verifica se existem os segundos (um post) para inverter a posição entre o mês e o dia.
	var erDateWithSeconds = /(\d+):(\d+):(\d+)/gim;
	if ( erDateWithSeconds.test( sDate ) == true )
	{
		var temp = aDateSections[1];
		aDateSections[1] = aDateSections[2];
		aDateSections[2] = temp;
	}
	erDateWithSeconds.lastIndex = 0;
	
	var sNewDate = aDateSections[1] + "/" + aDateSections[2] + "/" + aDateSections[3] + " às " + aDateSections[4] + ":" + aDateSections[5];
	
	document.getElementById( sDateId ).replaceChild( document.createTextNode( sNewDate ), document.getElementById( sDateId ).firstChild );
	
	erPtBrDateFormat.lastIndex = 0;

};