aurweb/web/lib
Dan McGee 1f252eba64 Always set ModifiedTS including new packages
Set it equal to the SubmittedTS field, which will be our indication the
package is new when we show the logo on the front page of the AUR.

This results in the ability to remove the use of the unindexable
GREATEST() function from the AUR code everywhere we had to use it before
to handle the 0 timestamp case.

Note that there is no race condition here in calling UNIX_TIMESTAMP()
twice- it always returns the time at the beginning of statment
execution:

    mysql> select unix_timestamp(), sleep(2), unix_timestamp();
    +------------------+----------+------------------+
    | unix_timestamp() | sleep(2) | unix_timestamp() |
    +------------------+----------+------------------+
    |       1300851746 |        0 |       1300851746 |
    +------------------+----------+------------------+
    1 row in set (2.00 sec)

Signed-off-by: Dan McGee <dan@archlinux.org>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
2011-04-03 22:59:31 +02:00
..
acctfuncs.inc Fix broken XHTML. 2011-03-11 19:00:50 +01:00
aur.inc Set a default timezone 2011-03-04 10:29:17 +01:00
aurjson.class.php Drop PackageLocations table and references 2011-02-01 12:41:08 +01:00
config.inc.proto Protect users against ZIP bombs (fixes FS#22991). 2011-02-23 11:17:27 +01:00
feedcreator.class.php RSS support implemented 2005-06-10 23:07:24 +00:00
Find.php Include File/Find.php PEAR module 2008-07-28 10:27:38 -05:00
pkgfuncs.inc Always set ModifiedTS including new packages 2011-04-03 22:59:31 +02:00
stats.inc Always set ModifiedTS including new packages 2011-04-03 22:59:31 +02:00
translator.inc Remove useless or redundant code for translations. 2010-01-09 18:24:53 -05:00
version.inc Release 1.8.1. 2011-03-09 17:44:21 +01:00