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 and time #1353

Open
Richy-java opened this issue Aug 31, 2024 · 1 comment
Open

Date and time #1353

Richy-java opened this issue Aug 31, 2024 · 1 comment

Comments

@Richy-java
Copy link

17251194613915783209948468761273

The printing out date is not correct with the timezone

@us259er
Copy link

us259er commented Sep 1, 2024

To print the current date and time in you need to set your timezone first:

date_default_timezone_set("Europe/Warsaw");
$printer->text(date("d-m-Y H:i"));

Replace Europe/Warsaw with your timezone

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

2 participants