From d12c7c4dbf117ecec60eae6f0dc8d9bb5ee339b5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 8 Apr 2021 09:18:59 +0300 Subject: Fixed bad timezone offset --- src/app/components/feed/feed.component.ts | 2 +- src/app/components/profile/profile.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/app/components/feed/feed.component.ts b/src/app/components/feed/feed.component.ts index 895bf76..4100e41 100644 --- a/src/app/components/feed/feed.component.ts +++ b/src/app/components/feed/feed.component.ts @@ -41,7 +41,7 @@ export class FeedComponent implements OnInit { this.files = []; const now = new Date(); - now.setHours(now.getHours() + 2); // accounting for eastern european timezone + now.setHours(now.getHours() + 3); // accounting for eastern european timezone this._timeLoaded = now.toISOString(); this.createPostFormGroup = this._fb.group({ diff --git a/src/app/components/profile/profile.component.ts b/src/app/components/profile/profile.component.ts index fc5d4d6..83f6517 100644 --- a/src/app/components/profile/profile.component.ts +++ b/src/app/components/profile/profile.component.ts @@ -41,7 +41,7 @@ export class ProfileComponent implements OnInit { this._urlUsername = this._router.url.substring(9); const now = new Date(); - now.setHours(now.getHours() + 2); // accounting for eastern europe timezone + now.setHours(now.getHours() + 3); // accounting for eastern europe timezone this._timeLoaded = now.toISOString(); this._currentPage = 1; -- cgit v1.2.3