|
| 1 | +.. Licensed to the Apache Software Foundation (ASF) under one |
| 2 | + or more contributor license agreements. See the NOTICE file |
| 3 | + distributed with this work for additional information# |
| 4 | + regarding copyright ownership. The ASF licenses this file |
| 5 | + to you under the Apache License, Version 2.0 (the |
| 6 | + "License"); you may not use this file except in compliance |
| 7 | + with the License. You may obtain a copy of the License at |
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + Unless required by applicable law or agreed to in writing, |
| 10 | + software distributed under the License is distributed on an |
| 11 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 12 | + KIND, either express or implied. See the License for the |
| 13 | + specific language governing permissions and limitations |
| 14 | + under the License. |
| 15 | +
|
| 16 | +.. sub-section included in upgrade notes. |
| 17 | +
|
| 18 | +Time zone requirements |
| 19 | +###################### |
| 20 | + |
| 21 | +As of CloudStack 4.14, you must explicitly configure time zone either in the MySQL server or JDBC driver (db.properties). |
| 22 | +In previous CloudStack versions, UTC time zone was assumed by default (all event's have UTC time stamps), so |
| 23 | +the same UTC time zone should now be explicitly configured. |
| 24 | + |
| 25 | +You can do this by editing the /etc/cloudstack/management/db.properties file and adding "serverTimezone=UTC" |
| 26 | +to the "db.cloud.url.params=" and "db.usage.url.params=" lines. Example lines, from a clean 4.14 installation, are given below: |
| 27 | + |
| 28 | +.. parsed-literal:: |
| 29 | +
|
| 30 | + db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&sessionVariables=sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'&serverTimezone=UTC |
| 31 | + db.usage.url.params=serverTimezone=UTC |
| 32 | +
|
0 commit comments