feat(timezone): implement UTC and Beijing time conversion utilities and update bid handling

- Add functions to convert between UTC and Beijing time in timezone utility.
- Update BidsService to return latest update and publish dates in Beijing time.
- Modify BidCrawlerService to store publish dates in UTC format.
- Change database timezone configuration to UTC for consistency.
This commit is contained in:
dmy
2026-01-16 00:00:00 +08:00
parent e8beeec2b9
commit 9257c78e72
4 changed files with 58 additions and 22 deletions

View File

@@ -20,7 +20,7 @@ import { ConfigModule, ConfigService } from '@nestjs/config';
database: configService.get<string>('DATABASE_NAME', 'bidding'),
entities: [__dirname + '/../**/*.entity{.ts,.js}'],
synchronize: false,
timezone: '+08:00',
timezone: 'Z',
}),
}),
],