Skip to content
Snippets Groups Projects
Commit 48a76165 authored by Niklas Schrötler's avatar Niklas Schrötler
Browse files

MensaplanPanel: Fixed API request

parent 3f9ef946
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,7 @@ const MensaplanPanel = (props: {definition: MensaPanelDefinition}) => { ...@@ -193,7 +193,7 @@ const MensaplanPanel = (props: {definition: MensaPanelDefinition}) => {
export default MensaplanPanel; export default MensaplanPanel;
function toYYYYMMDD(input: Date): string { function toYYYYMMDD(input: Date): string {
return `${input.getFullYear()}-${input.getMonth() + 1}-${input.getDate()}` return `${input.getFullYear().toString().padStart(4, "20")}-${(input.getMonth() + 1).toString().padStart(2, "0")}-${input.getDate().toString().padStart(2, "0")}`
} }
function typeToIcon(type: string): React.FC | null { function typeToIcon(type: string): React.FC | null {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment