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

DateTime object can be instance of DateTimeImmutable since PHP5.5 #75

Closed
wants to merge 2 commits into from
Closed

DateTime object can be instance of DateTimeImmutable since PHP5.5 #75

wants to merge 2 commits into from

Conversation

mrsombre
Copy link

In this case we should check DateTimeInterface instead of DateTime

@uwetews
Copy link
Contributor

uwetews commented Jul 31, 2015

shared.make.timestamp.php shall return (int) not (string).
Why did you change getTimestamp() to format('U') ??

getTimestamp() is also supported by DateTimeImmutable and DateTimeInterface

@mrsombre
Copy link
Author

This method exists only since 5.3, could be more compatible and do the same
31 Июл 2015 г. 22:59 пользователь "uwetews" notifications@github.com
написал:

shared.make.timestamp.php shall return (int) not (string).
Why did you change getTimestamp() to format('U') ??

getTimestamp() is also supported by DateTimeImmutable and DateTimeInterface


Reply to this email directly or view it on GitHub
#75 (comment).

@uwetews
Copy link
Contributor

uwetews commented Aug 1, 2015

You are right.
I modified your code so that the result is integer.
Patch is in dev-master and will be part of next release.

@uwetews uwetews closed this Aug 1, 2015
@mrsombre mrsombre deleted the datetime-bug branch August 4, 2015 06:06
think-mcunanan pushed a commit to think-mcunanan/smarty that referenced this pull request Mar 22, 2023
Merge release-2.0.7.3 into release-2.0.8 release branch
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

Successfully merging this pull request may close these issues.

2 participants