Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the blank screen on login issue - resolves #716 #723

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

alexwasserman
Copy link
Contributor

Resolves: #716

Removes the Z from the timestamp variables in:

  • Time.tsx
  • Ago.tsx
  • Edited.tsx
  • Profile.tsx
  • Scores.tsx

Tested and verified with a local build against my personal lemmy.

@@ -5,7 +5,7 @@ interface TimeProps {
}

export default function Time({ date: dateStr }: TimeProps) {
const date = new Date(`${dateStr}Z`);
const date = new Date(`${dateStr}`);
Copy link
Contributor

@zoe-codez zoe-codez Sep 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const date = new Date(dateStr);

The string template is unnecessary now

@aeharding
Copy link
Owner

Thanksfor this! I've adjusted this so dates continue to work in old lemmy clients for now. It can be removed in the future :)

@aeharding aeharding merged commit d8e83e4 into aeharding:main Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blank Screen on Lemmy load - RangeError: Invalid time value on my local lemmy
3 participants