Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

PM/AM calculation problems in customizible options #999

Closed
TomashKhamlai opened this issue Oct 11, 2019 · 0 comments
Closed

PM/AM calculation problems in customizible options #999

TomashKhamlai opened this issue Oct 11, 2019 · 0 comments
Labels
bug Something isn't working Component: QuoteGraphQl

Comments

@TomashKhamlai
Copy link
Contributor

Related to #761.
Reproduced on #804

Preconditions (*)

  1. A Simple Product with customizable option Date&Time.
    SKU: simple-product-date

Steps to reproduce (*)

  1. Create empty cart
  2. Find an option_id
{
  products(
    filter: {
      sku: {
        eq: "simple-product-date"
      }
    }
  ) {
    items {
      ... on CustomizableProductInterface {
        options {
          option_id
        }
      }
    }
  }
}
  1. Add product to cart
mutation {
  addSimpleProductsToCart(
    input: {
      cart_id: "XNpDkymvFOQBmxyDExJmgJdEZvjtFubt"
      cart_items: {
        data: {
          quantity: 1
          sku: "simple-product-date"
        }
        customizable_options: [
          {
            id: 5
            value_string: "01-01-01 14:00:05"
          }
        ]
      }
    }
  ) {
    cart {
      items {
        id
        quantity
        product {
          sku
          stock_status
        }
        ... on SimpleCartItem {
          customizable_options {
            id
            label
            values {
              id
              label
              value
            }
          }
        }
      }
    }
  }
}
  1. Check the cart on storefront

Expected result (*)

  1. The time part of the date 01-01-01 14:00:05 is displayed as 02:00 PM

Actual result (*)

  1. The time part of the date 01-01-01 14:00:05 is displayed as 02:00 AM
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Component: QuoteGraphQl
Projects
None yet
Development

No branches or pull requests

2 participants