Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

fix(orderList): add zero-padding to timestamp #22

Closed
wants to merge 1 commit into from
Closed

fix(orderList): add zero-padding to timestamp #22

wants to merge 1 commit into from

Conversation

DerekLinan
Copy link

Changes

  • Change order timestamp to zero pad the minutes and seconds

Purpose

Allows users to view their order with the intended timestamp format

Approach

This fix maintains the 24-hour time cycle while adding 0 padding to the minutes and seconds fields

Pre-Testing TODOs

  • Create an order when the current time minutes or seconds is less than 10.

Testing Steps

  1. Log in
  2. Go to "View Orders" tab
  3. Observe expected behavior

Learning

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleTimeString

Closes #2

@DerekLinan DerekLinan requested a review from Fleury14 as a code owner July 6, 2022 19:26
@Fleury14
Copy link
Collaborator

Closing to keep this off the main branch.

@Fleury14 Fleury14 closed this Jul 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Order Time does not format time correctly
2 participants