Proper syntax for simple conditional bloginfo language

get_bloginfo returns strings so this works fine:

<?php 
$language = get_bloginfo( 'language' );
if(language == 'en-US')
    the_time('jS F Y');
else
    the_time('d/m/Y');
?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)