Automatic time conversion #147
Labels
No labels
dependencies
Priority: Critical
Priority: High
Priority: Low
Priority: Medium
State: Abandoned
State: Blocked
State: Completed
State: In progress
State: New
State: On Hold
State: Pending
State: Review needed
State: Waiting for release
Type: Bug
Type: Enhancement
Type: Maintenance
Type: Question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Serraniel/AniwatchPlus#147
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Times on Aniwatch are always displayed in UTC+1. These should be converted into localtime for the user. By default the local time should be tried to auto detect. Additionally you can configure your UTC Offset to override the default.
Potential datetime / time information:
I added screenshots of the time representations in the DOM into the comment listing all occurences (I could find). Detecting time shall be easy with a regular expression searching for the numbers with the colon followed by either AM or PM.
he difficult par will be to fix the date. To make it even harder they use inconsistent representations (
dd/mm/yyyy
/<day> at
/dd.mm.yyyy
/today at
).According to the Devs it technically would change to +2 with the current code. However this will be changed by aniwatch until the next spring.
Possible regex patterns:
Times:

\d?\d:\d{2}( (AM|PM))?
Date:

(\d{2}(\/|\.)){2}\d{4}
Datetime:

(\d{2}(\/|\.)){2}\d{4} *\d?\d:\d{2}( (AM|PM))?
Data displayed on https://aniwatch.me/airing should not be changed because we would have to restructure the full page then. Additionally there is a big hint that all data is displayed in UTC+1.
This issue has been resolved with v1.0 release.