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

Fehlerhafte Datumsdarstellung #4

Open
phi1010 opened this issue Feb 7, 2012 · 0 comments
Open

Fehlerhafte Datumsdarstellung #4

phi1010 opened this issue Feb 7, 2012 · 0 comments
Labels

Comments

@phi1010
Copy link
Owner

phi1010 commented Feb 7, 2012

Wurde ein Vertretungsplan innerhalb der letzten 24, Stunden geändert, so wird die letzte Änderung mit "Heute" benannt, auch wenn die Änderung am Vortag stattgefunden hat.

ceil(($date - time()) / (60 * 60 * 24)) berechnet die Anzahl der angebrochenen Tage.
Sinnvoll wäre floor($date / (60 * 60 * 24)) - floor(time() / (60 * 60 * 24)), dies erzeugt jedoch aufgrund der Zeitverschiebung Fehler, weshalb beim Parsen die aktuelle Zeitzone ignoriert werden könnte.

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

No branches or pull requests

1 participant