Skip to content

Conversation

@BethanyZhou
Copy link
Contributor

@BethanyZhou BethanyZhou commented Jul 12, 2023

image

this._message = string.IsNullOrEmpty(message) ? Resources.PreviewCmdletMessage : message;
}

public CmdletPreviewAttribute(string message, string estimatedDateOfGa) : this(message)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we avoid confusion for dates like "1/2/2023"? Some may interpret it as Jan 2nd, some Feb 1st.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The date assume the date follows "en-US" culture like breaking change attribute, which means dates are written in the month–day–year order.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The benefits of using local culture to display estimated GA date is customer are more familiar with their local date. But considering:

  • to keep consistent with breaking change attribute, CmdletPreviewAttribute won't display estimatedGaDate with local culture to avoid introduce new confusion.
  • Customer may use the output as the input of DateTime, standard date time will avoid parse issue.

@BethanyZhou BethanyZhou merged commit 48c247f into main Jul 20, 2023
@BethanyZhou BethanyZhou deleted the bez/cmdletpreview branch July 20, 2023 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants