dhamaniasad Posted December 25, 2012 Share Posted December 25, 2012 I am using the 'default' template provided by whmcs, and I am facing a problem. I want the year in the copyright notice to update automatically, but it doesn't. The code is below : <div id="copyright">Copyright © 2012 {$companyname}. All Rights Reserved.</div> And this obviously means that whmcs wont update the year on its own. What do I do about this? 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted December 25, 2012 Share Posted December 25, 2012 Change the year to: {$date_year} or {'Y'|date} 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted December 25, 2012 Share Posted December 25, 2012 Or use javascript. This prints current year: <script type="text/javascript">var mdate = new Date(); document.write(mdate.getFullYear());</script> 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.