Skip to content

Commit

Permalink
#25 oracle驱动默认把时区设置为UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
yinlianghui committed May 16, 2019
1 parent ebc6406 commit 858f79b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/objectql/src/driver/oracle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export class SteedosOracleDriver extends SteedosTypeormDriver {

constructor(config: SteedosDriverConfig) {
super(config);
if (!process.env.ORA_SDTZ) {
// 设置日期/时间字段默认时区为UTC
process.env.ORA_SDTZ = 'UTC';
}
}

getConnectionOptions(): ConnectionOptions {
Expand Down

0 comments on commit 858f79b

Please sign in to comment.