[CONJS-154] Timezone support correction and clarification Created: 2020-11-13 Updated: 2020-12-04 Resolved: 2020-12-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/node.js |
| Component/s: | other |
| Affects Version/s: | None |
| Fix Version/s: | 2.5.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Actual timezone support has 2 issues,
Additionally, documentation is missing a detailed description. Here is the documentation change proposal: Timezone considerationClient and database can have a different timezone. The connector has different solutions when this is the case.
IANA timezone / offsetWhen using IANA timezone, the connector will set the connection timezone to the timezone. If timezone correspond to javascript default timezone, then no conversion will be done Recommendation.The best is to have the same timezone on client and database, then keep the 'local' default value. If different, then either client or server has to convert date. example: client use 'America/New_York' by default, and server 'America/Los_Angeles'. |