mcorega / MySqlSwiftNative

MySQL Swift Native Driver
Other
112 stars 44 forks source link

Problem with Data fields #12

Closed wmichel1 closed 8 years ago

wmichel1 commented 8 years ago

When fetching a data field from my database the result is not always correct. ex.: data column "gebdatum" contains 1942-08-15 query string : let select_stmt = try con.prepare("SELECT id, name, gebdatum, toddatum, vorname FROM indiv where id =?") query result is: ["toddatum": , "id": 1, "vorname": "Walter Hubert", "gebdatum": 1942-08-14 22:00:00 +0000, "name": "Michel"]

wmichel1 commented 8 years ago

problem solved. Need to choose the right time zone!