Support » Fixing WordPress » Simple Javascript to show Day/month stop working after 4.2.3 update

  • Buddies, here´s a simple code to show the ACTUAL DAY/MONTH: ( days /months are in Portuguese language ) :
    Example: Item actually on stock in (day/month/year)

    Copy/paste Below:

    <script type=”text/javascript”>// <![CDATA[
    var mydate=new Date()
    var year=mydate.getYear()
    if (year < 1000) year+=1900
    var day=mydate.getDay()
    var month=mydate.getMonth()
    var daym=mydate.getDate()
    if (daym<10) daym=”0″+daym
    var dayarray=new Array(“Domingo”,”Segunda”,”Terça”,”Quarta”,”Quinta”,”Sexta”,”Sábado”)
    var montharray=new Array(“de Janeiro”,”de Fevereiro”,”de Março”,”de Abril”,”de Maio”,”de Junho”,”de Julho”,”de Agosto”,”de Setembro”,”de Outubro”,”de Novembro”,”de Dezembro”)
    document.write(“”+daym+” “+montharray[month]+”, “+year+””)
    // ]]></script>

    _____________________
    So… what happened?
    Worked perfectly for more than 3 years, but today stopped,after automatic update to 4.2.3 .

    Any Help is very useful.
    Many thanks in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Simple Javascript to show Day/month stop working after 4.2.3 update’ is closed to new replies.