Jump to content

Alterando o formato da Data [ticketfeedback.tpl]


Jefferson

Recommended Posts

Para quem quiser alterar o formato das datas exibidas na página do Ticket FeedBack de seu WHMCS e o formato do campo de Duração do Ticket, siga os passos abaixo.

 

1) Abra o arquivo ticketfeedback.tpl do seu template.

2) Localize o código {$opened} e substitua por:

{$opened|replace:'10th ':'10/'|replace:'11th ':'11/'|replace:'12th ':'12/'|replace:'13th ':'13/'|replace:'14th ':'14/'|replace:'15th ':'15/'|replace:'16th ':'16/'|replace:'17th ':'17/'|replace:'18th ':'18/'|replace:'19th ':'19/'|replace:'20th ':'20/'|replace:'21st ':'21/'|replace:'22nd ':'22/'|replace:'23rd ':'23/'|replace:'24th ':'24/'|replace:'25th ':'25/'|replace:'26th ':'26/'|replace:'27th ':'27/'|replace:'28th ':'28/'|replace:'29th ':'29/'|replace:'30th ':'30/'|replace:'31st ':'31/'|replace:'1st ':'01/'|replace:'2nd ':'02/'|replace:'3rd ':'03/'|replace:'4th ':'04/'|replace:'5th ':'05/'|replace:'6th ':'06/'|replace:'7th ':'07/'|replace:'8th ':'08/'|replace:'9th ':'09/'|replace:'pm':''|replace:'am':''|replace:'Wednesday, ':''|replace:'Monday, ':''|replace:'Tuesday, ':''|replace:'Thursday, ':''|replace:'Friday, ':''|replace:'Saturday, ':''|replace:'Sunday, ':''|replace:'January ':'01/'|replace:'February ':'02/'|replace:'March ':'03/'|replace:'April ':'04/'|replace:'May ':'05/'|replace:'June ':'06/'|replace:'July ':'07/'|replace:'August ':'08/'|replace:'September ':'09/'|replace:'October ':'10/'|replace:'November ':'11/'|replace:'December ':'12/'}

3) Localize o código {$lastreply} e substitua por:

{$lastreply|replace:'10th ':'10/'|replace:'11th ':'11/'|replace:'12th ':'12/'|replace:'13th ':'13/'|replace:'14th ':'14/'|replace:'15th ':'15/'|replace:'16th ':'16/'|replace:'17th ':'17/'|replace:'18th ':'18/'|replace:'19th ':'19/'|replace:'20th ':'20/'|replace:'21st ':'21/'|replace:'22nd ':'22/'|replace:'23rd ':'23/'|replace:'24th ':'24/'|replace:'25th ':'25/'|replace:'26th ':'26/'|replace:'27th ':'27/'|replace:'28th ':'28/'|replace:'29th ':'29/'|replace:'30th ':'30/'|replace:'31st ':'31/'|replace:'1st ':'01/'|replace:'2nd ':'02/'|replace:'3rd ':'03/'|replace:'4th ':'04/'|replace:'5th ':'05/'|replace:'6th ':'06/'|replace:'7th ':'07/'|replace:'8th ':'08/'|replace:'9th ':'09/'|replace:'pm':''|replace:'am':''|replace:'Wednesday, ':''|replace:'Monday, ':''|replace:'Tuesday, ':''|replace:'Thursday, ':''|replace:'Friday, ':''|replace:'Saturday, ':''|replace:'Sunday, ':''|replace:'January ':'01/'|replace:'February ':'02/'|replace:'March ':'03/'|replace:'April ':'04/'|replace:'May ':'05/'|replace:'June ':'06/'|replace:'July ':'07/'|replace:'August ':'08/'|replace:'September ':'09/'|replace:'October ':'10/'|replace:'November ':'11/'|replace:'December ':'12/'}

4) Localize o código {$duration} e substitua por:

{$duration|replace:' Days':'d'|replace:' Day':'d'|replace:' Hours':'h'|replace:' Hour':'h'|replace:' Minutes':'m'|replace:' Minute':'m'|replace:' Seconds':'s'|replace:' Second':'s'}

Assim as datas serão exibidas no formato 18/01/2015 13:35 e o tempo de duração do ticket 5m 33s.

 Hospedagem de Sites, Revenda de Hospedagem, Servidores Virtuais, Registro de Domínios
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?