dateUpload for AniWorld & SerienStream #116
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Creepso/mangayomi-extensions#116
Loading…
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Use this code instead :
But your code doesn't make use of the time, and doesn't take the Daylight Saving Times into account. That's why I wanted to use Intl, and since it isn't implemented I made my own small function getLastSundayOfMonth to determine whether the time was in MESZ (CEST) or MEZ (CET).
BTW the dateString would look like this: "Sonntag, 08.09.2024 16:40", so there is no need to use padStart.
It's because it doesn't seem to return the right values
I tried it on https://aniworld.to/anime/stream/attack-on-titan
and on
https://aniworld.to/anime/stream/dan-da-dan and got the correct values.
Where did you get wrong values?
Huh strange, I've only tested it in the code-editor and it worked there perfectly:
Now I tried it on the normal anime view and it doesn't work, like you said:
How come?
Fixed, use it like this :
Oh I feel dumb. I literally put it into my comment, that it's in milliseconds. But I converted it into seconds, since the Unix timestamp uses seconds. I have only paid attention to the "dateUpload is a string" part of the comment, hahaha.
Also don't forget to increment version number
Thanks