availability timezone fix (#1180)
This commit is contained in:
		
							parent
							
								
									9fd078c59d
								
							
						
					
					
						commit
						0a34512e3b
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -159,8 +159,8 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => | ||||||
|     availability && availability.length |     availability && availability.length | ||||||
|       ? availability.map((schedule) => ({ |       ? availability.map((schedule) => ({ | ||||||
|           ...schedule, |           ...schedule, | ||||||
|           startTime: schedule.startTime.getUTCHours() * 60 + schedule.startTime.getUTCMinutes(), |           startTime: schedule.startTime.getHours() * 60 + schedule.startTime.getMinutes(), | ||||||
|           endTime: schedule.endTime.getUTCHours() * 60 + schedule.endTime.getUTCMinutes(), |           endTime: schedule.endTime.getHours() * 60 + schedule.endTime.getMinutes(), | ||||||
|         })) |         })) | ||||||
|       : null; |       : null; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Alex Johansson
						Alex Johansson