Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date in fixtures #5

Open
snikersxd opened this issue Aug 13, 2012 · 0 comments
Open

Date in fixtures #5

snikersxd opened this issue Aug 13, 2012 · 0 comments

Comments

@snikersxd
Copy link

Hi,
I am from Poland. I changed the language of the date of the fixtures.
So I changed the code, but unfortunately I do not read Polish characters, and the first date is in English.
$output .= '';

                $output .= '<td>'.strftime("%a %e %b, %H:%M", strtotime($row->played)).'</td>';

                $output .= '<td class="centered">'.(int) $row->number.'</td>';

                $output .= '<td>'.esc_html($row->home_name).' - '.esc_html($row->away_name).'</td>';
        $arrLocales = array('pl_PL', 'pl','Polish_Poland.28592');
                setlocale( LC_ALL, $arrLocales );



                if (date('Y-m-d') >= $row->played)

                    $output .= '<td class="centered">'.$row->goal_home.' - '.$row->goal_away.'</td>';

                else

                    $output .= '<td class="centered"> - </td>';



                $output .= '</tr>';

Sorry but my English is not as good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant