Jump to content
You're invited! Join our 4.6 Live Event on ZOOM 6/24 ×

Community

Birthday Greeter Support


Michael.J

Recommended Posts

  • 2 weeks later...
  • 3 months later...
  • 3 weeks later...
  • 2 weeks later...

Hi @Mike John We have recently set this up for posting a topic each day which is great & working well.

Yes, I had the problem of what time it posts, but have overcome that by manually running the task at the right time once, then, every day, it does it at the same time.

However, the problem I have is that our site is about 95% USA members and the title of the topic which is posted is in a format of yyyy-mm-dd and we would like it to be in the standard USA format of mm-dd-yyyy

Where can I change this?

Edited by Greg W
Link to comment
Share on other sites

On 15/11/2015, 2:23:42, Greg W said:

However, the problem I have is that our site is about 95% USA members and the title of the topic which is posted is in a format of yyyy-mm-dd and we would like it to be in the standard USA format of mm-dd-yyyy

Where can I change this?

I haven't tested it but I believe this should do the trick. Open applications/birthdaygreeter/sources/Alerts/Alerts.php

Find:

\IPS\DateTime::create()->format( 'Y-m-d' );

Replace With:

\IPS\DateTime::create()->localeDate();

I believe the local date should use the local date setting, if not change the format variables around to m-d-Y and I'll be sure to include this as a setting next version.

Link to comment
Share on other sites

8 minutes ago, Mike John said:

the local date setting, if not change the format variables around to m-d-Y and I'll be sure to include this as a setting next version.

You may have some issues with DateTime using hyphens vs slash (British vs American) and localeDate() - I know this is a huge problem when using date()/strtotime() as they will interpret based on the usage of hyphens or slash.

Just to keep in mind :p 

Link to comment
Share on other sites

  • 5 weeks later...
  • 5 weeks later...
10 hours ago, Michael R said:

Hmmm. I noticed that it stopped working this morning (no updates). So I went into settings to check is something was messed up. Now when I try to save, I get this error:

Next version due out within several days. Should patch the settings issue and will take a look at any possible reason why the alert wasn't sent out.

Link to comment
Share on other sites

I'm having trouble reproducing the setting saving error locally. If someone who can reproduce can PM me forum login details to confirm my patch works?

I'm having trouble reproducing the setting saving error locally. If someone who can reproduce can PM me forum login details to confirm my patch works?

Link to comment
Share on other sites

12 hours ago, Lord Balandar said:

Hello! I have yet to test the functionality of sending birthday greetings, but I noticed when selecting groups to exclude and saving, those groups are not re-selected after going back into the settings.

Thanks for reporting, I've included a patch with the bug report if you wanted to patch this straight away. It should be saving the settings properly but just not displaying them in the settings page.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy