fix timezone

This commit is contained in:
Nasser committed 2020-11-06 19:30:14 +03:30
1 parent 36ec55c85d
commit b33aa157ec
3 files changed
+6 -9

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ trait Formatting
$timestamp = $this->getTimestamp();
list( $gYear, $gMonth, $gDay, $gWeek ) = explode( '-', parent::format( 'Y-m-d-w' ) );
list( $gYear, $gMonth, $gDay, $gWeek ) = explode( '-', date('Y-m-d-w', $timestamp) );
list( $pYear, $pMonth, $pDay ) = static::getJalali( $gYear, $gMonth, $gDay );
$pWeek = ( $gWeek + 1 );