adixon / ca.civicrm.logviewer

CiviCRM Log Viewer
Other
9 stars 11 forks source link

fix for month starting in lowercase #5

Closed sluc23 closed 6 years ago

sluc23 commented 6 years ago

Fixes #4

sluc23 commented 6 years ago

the weird thing is in my spanish CiviCRM's logs some entries are logged as abr 24 15:50:38 (for abril in Spanish) and some other as Apr 24 15:50:38 I don't know why.. there must be a different function that localizes some of the entry stamp, but not all of them

So your last regexp won't work cause you are expecting the beginning with 3 Uppercases

adixon commented 6 years ago

Sorry, you are correct, my bad ... what I really wanted was
/^[A-Za-z]{3} [0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$/ Re: random localization, yes. This is a fascinating insight into a different issue I've been looking at where money is being localized erratically as well.

sluc23 commented 6 years ago

yes, your regexp will do the trick ;) commited