Hi,
What I did was modify geturl.php in playsms a bit to take the date
from the global variable $datetime_now
i.e in ./plugin/gateway/kannel/geturl.php, I add the line
global $datetime_now; <----- add this declaration to use the global datetime
$remote_addr = $_SERVER["REMOTE_ADDR"];
//if ($remote_addr != $kannel_param['bearerbox_host'])
if ($remote_addr != "202.160.26.225")
{
die();
}
$t = $_GET['t'];
$q = $_GET['q'];
$a = $_GET['a'];
$t = $datetime_now; <---- I use the global variable here for $t
hope that helps.
cheers!
azlinux
On 19/04/06, Fajar Priyanto <[EMAIL PROTECTED]> wrote:
> Hi all,
> First of all I'm sorry if this is not kannel related.
> I setup an sms gateway using Kannel + Itegno GSM Modem + Playsms.
> Everything seems to be running OK. However, when Playsms receives sms, the
> time in the inbox is GMT, whereas my timezone is GMT + 7.
> Is there anything I should do to correct it?
>
> This is what Playsms invoke when receiving sms:
>
> exec = /usr/local/bin/kannel_incoming %t %q %a
>
> This is kannel_incoming:
> #!/bin/bash
>
> # change this if your kannel's incoming path in other directory
> KANNEL_PATH="/usr/local"
>
> KANNEL_FILE=`mktemp -q $KANNEL_PATH/cache/smsd/ERR.in.XXXXXX`
>
> touch $KANNEL_FILE
> chmod 666 $KANNEL_FILE
>
> # exec = /usr/local/bin/kannel_incoming %t %q %a
> # $1 : %t
> # $2 : %q
> # $3 : %a
> echo -e "$1\n$2" > $KANNEL_FILE
> echo $3 >> $KANNEL_FILE
>
> Thank you in advance,
> --
> Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
> http://linux2.arinet.org
> 18:13:50 up 9:47, 2.6.15-1.2054_FC5 GNU/Linux
> Let's use OpenOffice. http://www.openoffice.org
>
>
--
Hj Azaman Hj Suleiman
Tel: +6738143127