Skip to content

Commit

Permalink
Better warning for mysql/mariadb users
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Apr 18, 2024
1 parent 9c646d4 commit 94aa2b4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,12 @@ private void logWarningIfNotUTC(String database, boolean persistTimestampInUTC)
if (!persistTimestampInUTC) {
SILENCABLE_LOG.warn(
"{}-schema does not support persistent timezones. "
+ "It is recommended to store time in UTC to avoid issues with for example DST",
+ "It is recommended to store time in UTC to avoid issues with for example DST. "
+ "For first time users, use setting 'alwaysPersistTimestampInUtc' to achieve this. "
+ "Users upgrading from a version prior to v14.0.0 can either silence this logger, "
+ "or perform a controlled upgrade to UTC timestamps. All old instances "
+ "of the scheduler must be stopped and timestamps migrated to UTC before starting "
+ "again, using 'alwaysPersistTimestampInUtc=true'.",
database);
}
}
Expand Down

0 comments on commit 94aa2b4

Please sign in to comment.