1
ballboy
UK Version of Tiny Event
  • 2008/3/18 13:23

  • ballboy

  • Just popping in

  • Posts: 12

  • Since: 2005/1/26


can anyone assist with a UK version of the excellent Tiny Event modules? it currently displays dates in US format (MM/dd/yy) and this is bugging my Uk site users who prefer the european format of (dd/mm/yy).

Have tried a few things but this is beyond me !

tia.

2
Anonymous
Re: UK Version of Tiny Event
  • 2008/3/18 13:42

  • Anonymous

  • Posts: 0

  • Since:


Look in the module's language folder and see if there's something like "local.php" where the date is set.

For what you want, set the date format to d/m/Y

Cheers

3
ballboy
Re: UK Version of Tiny Event
  • 2008/3/18 16:02

  • ballboy

  • Just popping in

  • Posts: 12

  • Since: 2005/1/26


Thanks for that JAVesey, unfortunately it seems to use some wierd calculation when it stores the date:

if (empty($form_repeat)) {
$eventdate = mktime($autohour, $automin, 0, $autoday, $automonth, $autoyear);
$eventdate2 = (empty($autoyear2)) ? NULL : mktime($autohour2, $automin2, 0, $autoday2,$automonth2, x $autoyear2);

$q = "INSERT INTO ".$xoopsDB->prefix()."_tinyevent (date, date2, event, info) VALUES ('".$eventdate."', '".$eventdate2."', '".$form_event."', '".$form_info."')";
$done = $xoopsDB->queryF($q);
}
else {

for($i = 0; $i < $form_repeat; $i++) {
$eventdate = mktime($autohour, $automin, 0, $autoday, $automonth, $autoyear)+($i*86400);
$eventdate2 = (empty($autoyear2)) ? NULL : mktime($autohour2, $automin2, 0,$autoday2, $automonth2, $autoyear2)+($i*86400);

$q = "INSERT INTO ".$xoopsDB->prefix()."_tinyevent (date, date2, event, info) VALUES ('".$eventdate."', '".$eventdate2."', '".$form_event."', '".$form_info."')";
$done = ($done && $xoopsDB->queryF($q));
}

}

and displays via:




<{foreach item=content from=$content}>



<{/foreach}>

DateEvent
<{$events.date}> <{$events.date2}> <{$events.event}>

Login

Who's Online

416 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 416


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits