Change Date in {gift_certificates


  • Your avatar
    seyi    
     5 years ago
    0

    Hi,

    where can I change the date YYYY-m-d into d-m-YYYY provided in the tag {gift_certificates}
    thanxxx in advance,
    kind regards,
    Hennie
  • Your avatar
    seyi    
     5 years ago
    0

    There is no option to do this, so would have to do this directly in the code. In
    www/administrator/components/com_awocoupon/assets/virtuemart/ps_awo_giftcert.php, around line 135 is this
    <?php
        
    ($row['expiration']!='NULL' JText::_('EXPIRATION').': '.trim($row['expiration'],'"')."\r\n":'').
    ?>


    and change it to something like this
    <?php
        
    ($row['expiration']!='NULL' JText::_('EXPIRATION').': '.date('d-m-Y',$row['expirationraw'])."\r\n":'').
    ?>