Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: How to change Time Zone in cpmfetch 2.0  (Read 4113 times)

0 Members and 1 Guest are viewing this topic.

Kristian38

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
How to change Time Zone in cpmfetch 2.0
« on: January 10, 2011, 02:30:28 am »

Hi, how are you? Sorry for my bad English.
First of all tell you that I tried to try to do it alone, searching at the forum, reading the faq, php.net information and have had no success: (so I resort to the forum for help.
I wanted to create a side block with the latest albumnes added, with a photo album name date and time. It works perfectly, just that the time zone is not right for my country "Argentina. "
I am no specialist in php. Vuud The docs are very comprehensive and the result is as follows.

Quote
<?php
 include_once "./fotos2/cpmfetch/cpmfetch.php";
 $objCpm = new cpm("./fotos2/cpmfetch/cpmfetch_config.php");
 $options = array(
      "imagestyle" => "image",
     "cellstyle" => "prueba",
     "imagelink" => "album",
     "subtitle" => "<div class='facebook'>Album: {{aTitle}}<br>Fecha: {{pCtimeFormatted}}</div></center>",
     "imagewidth" => "150"
     ); 
 $objCpm->cpm_setDateFormat("d/m/Y H:i");
 $objCpm->cpm_getAlbumListFrom("",10,1, $options);
 $objCpm->cpm_close();?>

example: News Album Block

The question is: How I can change the time zone to GMT -03:00? Hours of Buenos Aires, Argentina
Thank you very much for your help, greetings. Cristian.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.