Browse Source
Bugfix/change date to utc in data gathering service (#867)
* Change date to UTC
* Update changelog
pull/864/head^2
Thomas Kaul
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/services/data-gathering.service.ts
|
|
@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. |
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Changed the date to UTC in the data gathering service |
|
|
|
|
|
|
|
## 1.141.1 - 24.04.2022 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -377,7 +377,14 @@ export class DataGatheringService { |
|
|
|
data: { |
|
|
|
dataSource, |
|
|
|
symbol, |
|
|
|
date: currentDate, |
|
|
|
date: new Date( |
|
|
|
Date.UTC( |
|
|
|
getYear(currentDate), |
|
|
|
getMonth(currentDate), |
|
|
|
getDate(currentDate), |
|
|
|
0 |
|
|
|
) |
|
|
|
), |
|
|
|
marketPrice: lastMarketPrice |
|
|
|
} |
|
|
|
}); |
|
|
|