Date format changes after loading pdfcomment

Issue #20 closed
Former user created an issue

Hello,

I noticed that in recent versions of pdfcomment the date format will be redefined after loading the package. In my example I use the a global class option "ngerman" as well as the Package babel (\usepackage[ngerman]{babel}), \today is therefore printed as '28. Juli 2016". If pdfcomment will be loaded after babel, \today is printed as '2016-07-28'.

Greetings, Michael

Comments (5)

  1. Josef Kleber repo owner

    Hi,

    with the last update I had to upgrade from obsolete datetime to datetime2, which seems to be a bit more aggressive regarding date settings. Please try to load datetime2 with (n)german option before loading pdfcomment.

    http://tex.stackexchange.com/questions/306049/display-custom-date-in-the-correct-regional-style-with-datetime2 seems to suggest that this should work. Please report back, I have no access to a TeX distribution at the moment and can not test myself.

  2. Michael712

    Thanks for your help, it works!

    I adapted the command to \usepackage[useregional]{datetime2} so I can switch between german and english without changing the language at multiple locations.

  3. Josef Kleber repo owner

    Can you please test the global optiongerman with your original test file. From the thread at stackchange I seem to understand that german should work and datetime2can not deal with ngerman. If so you can maybe contact Nicola - the maintainer of datetime2 - maybe she can do something. Recognizing german but not ngerman as global options is a bit unfortunate these days.

  4. Michael712

    Thanks for your suggestions, changing the global option to german works indeed (but breaks siunitx localization). I will try to contact Nicola so that the package datetime2 can be fixed.

  5. Josef Kleber repo owner

    Not really a problem of pdfcomment. Maybe loading datetime2 with useregional option in future?

  6. Log in to comment