OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
BookLibary Component Support
Go to bottom Favoured: 0
TOPIC: Changing date format
#3102
scooksley (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Changing date format 4 Years, 9 Months ago Karma: 0  
I want to change the date format for the publication date and also for reviews to British (dd-mm-YY).

Could you please tell me which files I need to find to do this?

I've already changed the GB.ini in the main Joomla languages section which helped me with another component but hasn't affected the Book Library.

Thanks - Steve
 
Logged Logged  
  The administrator has disabled public write access.
#3104
admin (Admin)
Admin
Posts: 4856
graph
User Offline Click here to see the profile of this user
Re:Changing date format 4 Years, 9 Months ago Karma: 61  
Hello Steave,

Not full clear what version you use.
also what I will propose may not work - because will need check data format for save to data base.

But you may try:

for book library version for Joomla 1.5 please open file
{yours site}/components/com_booklibrary/booklibrary.html.php
in it please find all rows with date like:
Code:

            <input class="inputbox" type="text" name="lend_from" id="lend_from" size="12" maxlength="10" value="<?php echo date("d-m-Y"); ?>" />
                    <input type="reset" class="button" value="..." onclick="return showCalendar('lend_from', 'dd-mm-y');" />



and replace in it data format to some like:
Code:

            <input class="inputbox" type="text" name="lend_from" id="lend_from" size="12" maxlength="10" value="<?php echo date("d-m-Y"); ?>" />
                    <input type="reset" class="button" value="..." onclick="return showCalendar('lend_from', 'dd-mm-y');" />




For Joomla1.6/1.7

You need find code like :
Code:

<?php echo JHtml::_('calendar',date("Y-m-d"), 'rent_from','rent_from','%Y-%m-%d' );  ?> 



But first please backup yours files first.

Also you may ask from us full custom version - with all features what you need

Thanks,
Ordasoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?