Skip to content

Commit

Permalink
Per #3075, adding a hotfix to main_v12.0 that should have been includ…
Browse files Browse the repository at this point in the history
…ed in the #3076 pull request. The logic for converting to camel case was in the wrong order and the details of this are described in this comment: #3078 (comment)
  • Loading branch information
JohnHalleyGotway committed Feb 13, 2025
1 parent ca3c74d commit b0e2542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic/vx_cal/unix_to_mdyhms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ int month = -1;

// Convert to camel case
string t_month_str(month_str);
transform(t_month_str.begin(), t_month_str.begin() + 1,
t_month_str.begin(), ::toupper);
transform(t_month_str.begin(), t_month_str.end(),
t_month_str.begin(), ::tolower);
transform(t_month_str.begin(), t_month_str.begin() + 1,
t_month_str.begin(), ::toupper);

for (int idx=1; idx<=12; idx++) {
if (t_month_str == short_month_name[idx] ||
Expand Down

0 comments on commit b0e2542

Please sign in to comment.