[rt-devel] RT::Date GMT vs Local

Ruslan U. Zakirov cubic at acronis.ru
Sat Dec 6 12:27:52 EST 2003

Date handling in RT have some issues with subj.
SetToNow - set to local time, but
SetToMidnight - use GMT.
May be this module should be refactored in any way?

		Best regards. Ruslan.

Also I'd like to see next function in RT::Date?

# {{{ sub SetToLocalMidnight

=head2 SetToLocalMidnight

Sets the date to midnight (at the beginning of the day) local
Returns the unixtime at midnight.


sub SetToLocalMidnight {
     my $self = shift;

     use Time::Local;
     my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday) = 

     return ($self->Unix);


# }}}

More information about the Rt-devel mailing list