I am currently having a list of time string
1: 20:15
2: 20:15
3: 20:15
4: 19:15
5: 20:00
6: 19:15
7: 20:15
8: 20:15
9: 19:00
10: 19:15
11: 20:15
12: 19:00
13: 20:00
14: 20:00
15: 20:00
16: 20:00
since they are not in my local timezone I would like to add 2 hours to every time on the list but I am not sure how to do this with the Date function since I only have access to the hours and minutes rather than the full date.
This might be something simple but to be honest this is my first time using dates in JS.
The Output should look like
1: 22:15
2: 22:15
3: 22:15
4: 21:15
5: 22:00
6: 21:15
7: 22:15
8: 22:15
9: 21:00
10: 21:15
11: 22:15
12: 21:00
13: 22:00
14: 22:00
15: 22:00
16: 22:00
I am getting the string from an API so this also has to work for any other list of strings (Format: HH:mm).
Since this is one of my learning projects I would rather enjoy implementing this without an external script.