Hi Fajar,
Maybe you can adjust your machine to local timezone by these steps:
To update the system date we use date command with its command format date
MMDDhhmmYY. Which is M=Month, D=Date, h=hour, m=minute, y=year.
Here is the example:

    #date 0310084506

To sync between system date to hardware date we need --systohc option on the
hcwlock command, and I myself prefer to sync it also to localtime, therefore
I add --locatime option.
Here is the example:

    #hwclock --systohc --localtime

Hope it can help you.


Willy
----- Original Message ----- 
From: "Fajar Priyanto" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, April 19, 2006 6:13 PM
Subject: Time is in GMT?


> 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
>


Reply via email to