That worked, thanks. Only weird thing now is that the time is one hour
behind.
On Thu, 2010-02-11 at 12:45 -0300, Eden Cardim wrote:
Kiffin == Kiffin Gish kiffin.g...@planet.nl writes:
Kiffin I've got a datetime column defined:
__PACKAGE__- add_columns(
Kiffin ...
From: Kiffin Gish kiffin.g...@planet.nl
That worked, thanks. Only weird thing now is that the time is one hour
behind.
Use something like:
-last_modified-set_time_zone('America/Chicago')-strftime('%F %T')
Or add the time_zone parameter as an option in your Result class (after do
not modify
Well actually I want to relate it to the timezone of the current user or
if that is not set in the user preferences, the browser time.
On Sat, 2010-02-13 at 23:09 +0200, Octavian Rasnita wrote:
From: Kiffin Gish kiffin.g...@planet.nl
That worked, thanks. Only weird thing now is that the time
From: Kiffin Gish kiffin.g...@planet.nl
Well actually I want to relate it to the timezone of the current user or
if that is not set in the user preferences, the browser time.
After you get the user time zone from users preferences, you can send it as
a parameter to set_time_zone() method of
On 2010-02-13, at 4:51 PM, Octavian Rasnita wrote:
Don't know how to get the time zone of the user from browser, but I think it
is not possible. You might need to get the visitor's IP and use a service
that can tell you his/her country or even city, and maybe there is a module
that can
Thanks. You're right about the timezone thing, I was confused with
javascript and now realize that the tz is not passed via HTTP headers.
Could save it in a cookie.
Is $c-user-get(x) the same as $c-user-x ?
mvg
Kiffin
On Sat, 2010-02-13 at 23:51 +0200, Octavian Rasnita wrote:
From: Kiffin Gish
That's probably your database servers' time zone setting. If it's set to
UTC you'd probably get that. You might want to add an 'on_connect_do' to
your connection_info setting and execute the appropriate command to set
the timezone you need (e.g. 'SET TIME ZONE LOCAL' or 'SET TIME ZONE
From: Kiffin Gish kiffin.g...@planet.nl
Thanks. You're right about the timezone thing, I was confused with
javascript and now realize that the tz is not passed via HTTP headers.
Could save it in a cookie.
Is $c-user-get(x) the same as $c-user-x ?
mvg
Kiffin
Yes it is the same thing if the
Kiffin == Kiffin Gish kiffin.g...@planet.nl writes:
Kiffin I've got a datetime column defined:
__PACKAGE__- add_columns(
Kiffin ... last_modified, { data_type = DATETIME,
Kiffin default_value = undef, is_nullable = 1, size = undef, },
Kiffin );
Kiffin For some reason
I've got a datetime column defined:
__PACKAGE__-add_columns(
...
last_modified,
{
data_type = DATETIME,
default_value = undef,
is_nullable = 1,
size = undef,
},
);
For some reason it's being displayed like this:
2010-01-05T20:35:14
How can I get that 'T' out of there,
Hi,
Am 06.01.2010 um 15:29 schrieb Kiffin Gish:
I've got a datetime column defined:
__PACKAGE__-add_columns(
...
last_modified,
{
data_type = DATETIME,
default_value = undef,
is_nullable = 1,
size = undef,
},
);
For some reason it's being displayed like this:
From: Kiffin Gish kiffin.g...@planet.nl
I've got a datetime column defined:
__PACKAGE__-add_columns(
...
last_modified,
{
data_type = DATETIME,
default_value = undef,
is_nullable = 1,
size = undef,
},
);
For some reason it's being displayed like this:
2010-01-05T20:35:14
12 matches
Mail list logo