# Bug Tracker

ID 131🔗 2019-05-29 16:57:08 Closed (Not a Bug) datetime2 1.5.3 showdayofmonth setting wrongly said as ignored

## Description

The compilation of the example given in Month/Year Format in Latex displays a warning: "Package datetime2 Warning: Region english-base' has ignored the following settings: showdayofmonth=false on input line 20." But, in fact, it is taken in account.

## MWE

\listfiles

\documentclass{article}
\usepackage[en-US]{datetime2}
\begin{document}
\today

\DTMlangsetup{showdayofmonth=false}
\today

\DTMlangsetup{showdayofmonth=true}
\today
\end{document}


## Evaluation

If the optional argument is missing to the command \DTMlangsetup the settings are passed to all loaded modules. In this example, there are two modules: the base english module and the en-US module. The base module has no option and so warns about trying to set an unknown option. The en-US module supports the showdayofmonth option and sets it. You can avoid the warning by using the optional argument to explicitly set which module to pass the option to:

\DTMlangsetup[en-US]{showdayofmonth=false}


or use the starred version:

\DTMlangsetup*{showdayofmonth=false}


which doesn't issue a warning for unknown options.

Name (optional):

Are you human? Please confirm the bug report ID (which can be found at the top of this page) or login if you have an account.

Comment:

You can use the following markup:

Block:

[pre]Displayed verbatim[/pre]
[quote]block quote[/quote]

In line:

[tt]code[/tt]
[file]file/package/class name[/file]
[em]emphasized text[/em]
[b]bold text[/b]
[url]web address[/url] [sup]superscript[/sup]
[sub]subscript[/sub]

Ordered list:
[ol]
[li]first item[/li]
[li]second item[/li]
[/ol]

Unordered list:
[ul]
[li]first item[/li]
[li]second item[/li]
[/ul]`

You can use the Preview button to review your message formatting before submitting.