fix: resolve timezone offset in reading session heatmap tooltip (#1870)
Co-authored-by: James Ward <james@notjam.es>
This commit is contained in:
+1
@@ -87,6 +87,7 @@ export class ReadingSessionHeatmapComponent implements OnInit, OnDestroy {
|
||||
const point = context[0].raw as MatrixDataPoint;
|
||||
const date = new Date(point.date);
|
||||
return date.toLocaleDateString('en-US', {
|
||||
timeZone: 'UTC',
|
||||
weekday: 'short',
|
||||
year: 'numeric',
|
||||
month: 'short',
|
||||
|
||||
Reference in New Issue
Block a user