You are here

function bb2_db_date in Bad Behavior 7.2

Same name and namespace in other branches
  1. 5.2 badbehavior.module \bb2_db_date()
  2. 6.2 badbehavior.module \bb2_db_date()
  3. 6 badbehavior.module \bb2_db_date()

Return current time in the format preferred by your database.

Return value

string

File

./badbehavior.module, line 130
Integrates Bad Behavior with Drupal

Code

function bb2_db_date() {
  return gmdate('Y-m-d H:i:s');

  // Example is MySQL format
}