topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday November 8, 2024, 8:40 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Field %e in custom date format produces "00" instead of space-padded day  (Read 4792 times)

ptran

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Hi,

I have a custom date format using %e. The quick paste menu displays 00 (two consecutive zeros) instead of the day of the month. When I paste, I also end up with 00. This behavior looks wrong. I'm running the CHS 2.31.0 beta (just downloaded about 10 minutes ago) on 64-bit Windows 7 Service Pack 1.

Here's the preset I'm using:
%A, %B %e, %Y

Here's the text is see in the pop up and when I paste:
Wednesday, October 00, 2015

The %d works correctly and displays "14" (for today, October 14, 2015).

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Let me check it out and report -- should be an easy fix.

ptran

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Hi ... Just checking in to see if there's an update on this problem. I still see it in version 2.34.

Here's a sample custom format:

A=%A, B=%B e=%e, Y=%Y

And here's the result I get:

A=Saturday, B=April e=00, Y=2016

And here's the documentation for %e:

%d Day of month as decimal number (01-31) [%e no leading 0]

I currently use %d and manually remove the leading zero. I only need to do this manual editing for 10 days, until we hit the 10th of each month.  :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Will be fixed in next release.

They the beta 2.36 listed on this page:
https://www.donation...index.php?topic=1514
« Last Edit: May 14, 2016, 04:13 PM by mouser »

ptran

  • Supporting Member
  • Joined in 2008
  • **
  • default avatar
  • Posts: 33
    • View Profile
    • Donate to Member
Sorry it's taken so long to respond.

I downloaded and installed the 2.36 beta (the EXE modification date is May 14, 2016, and its file version is 2.36.0).

I missed the June 9 test date (to see if I get "9" instead of "09"), but I tried it anyway.

I still see a problem:

My Date/Time preset is: A-B-E-Y: %A, %B %e, %Y
The pasted value is: A-B-E-Y: Friday, June 00, 2016