Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter frumbert

    (@frumbert)

    I have a base 3.7.1 Wp installation without any other plugins or customisations. On the register screen, I see “email” and “username”. I think if another plugin extends the registration screen details then you get to see those, but this plugin only seems to post back certain fields in it’s ajax call…

    Thread Starter frumbert

    (@frumbert)

    Answering my own question here, but I trawled around the net and found this snippet of code, which I put into /wp-content/plugins/weekly-class-scheudule/models/WcsTodayClassesWidget.php

    replace:
    $today = date( 'w', strtotime( 'now' ) );

    with:

    $date = new DateTime();
    $date->setTimezone(new DateTimeZone('Australia/Sydney'));
    $today = $date->format('w');

    Make sure that whatever application you are editing in isn’t save files as UTF-8. When files are encoded like this, they add 3 bytes at the top of the file which appear before the <?php open tag at the top of the file. You don’t normally “see” these characters because they are instructions to the editing program about the type of encoding that it needs to use when saving the file.

    If possible, change your editing tool to ANSI encoding before you save the file. Windows Notepad has this option on its Save As... screen – Look for Encoding at the bottom of the window.

    Hope this helps someone – it had me scratching my head for a while …

Viewing 3 replies - 1 through 3 (of 3 total)