Timezone settings in MySQL - Using NOW()?
        Posted  
        
            by 
                matt74tm
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by matt74tm
        
        
        
        Published on 2011-06-23T23:54:11Z
        Indexed on 
            2011/06/24
            0:23 UTC
        
        
        Read the original article
        Hit count: 190
        
SOmewhat related to Doing calculations in MySQL vs PHP
Right now, our database assumes that the system time is in UTC and uses that to calculate NOW(). PHP explicitly sets the timezone as UTC (so its impervious to server time zone shifts).
An accidental shift of timezones on the server messed this relationship up at the database level and i'm now trying to figure out the ideal congiguration:
- configure Mysql to be in UTC, but also from the perspective that: 
- our application may be on someone else's server where they might have a different TZ (so i cant set the timezone at the mysql/server level). How do i configure it at the specific database level? 
© Stack Overflow or respective owner