I have such trouble: when I\'m creating object and setting some datetime It is saving database in UTC TimeZone. Here is example:
//showing full list of objec
You can change the timezone of your application so that ruby's date object will auto configure the dates. MongoDB will always store time in UTC.
MongoDB has no internal knowledge of timezones.
config.time_zone
doesn't set "Server Time", that is controlled by your operating system usually.
Rails always stores your dates in UTC in the database (unless you change a different setting).