- Timestamp:
- 03/26/09 16:09:14 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Model/Vote.pm
r99 r109 58 58 $passwd ||= random_string(8); 59 59 return(crypt($passwd, '$1$' . random_string(8) . '$')); 60 } 61 62 sub dbtime { 63 my ($self) = @_; 64 my $sth = $self->db->prepare( 65 q{select to_char(now(), 'DD/MM/YYYY HH24:MI:SS') as d} 66 ); 67 68 $sth->execute(); 69 my $res = $sth->fetchrow_hashref; 70 $sth->finish; 71 $res->{d}; 60 72 } 61 73
Note: See TracChangeset
for help on using the changeset viewer.