Open Bug 321915 Opened 19 years ago Updated 19 years ago

create a timestamp function in util to standardize getting timestamps

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

People

(Reporter: pjdemarco, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

You'll see stuff like this in the code:

my ($timestamp) = Bugzilla->dbh->selectrow_array("SELECT NOW()");
my $sql_timestamp = SqlQuote($timestamp);

Reproducible: Always

Actual Results:  
copy & paste

Expected Results:  
call a central function
Yeah. Plus, that's a first step towards displaying times in the user's time zone.
Status: UNCONFIRMED → NEW
Ever confirmed: true
You need to log in before you can comment on or make changes to this bug.