mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-06 04:28:41 +00:00
add timezone support
This commit is contained in:
parent
862da62226
commit
8fb8659062
|
|
@ -50,11 +50,19 @@
|
||||||
"tablespoon": "Metric tblsp",
|
"tablespoon": "Metric tblsp",
|
||||||
"glass": "Metric cup"
|
"glass": "Metric cup"
|
||||||
},
|
},
|
||||||
|
"timezone": "Europe/Berlin",
|
||||||
"datetime": {
|
"datetime": {
|
||||||
"very_short": "d.m",
|
"very_short": "d.m",
|
||||||
"short": "m.y",
|
"short": "m.y",
|
||||||
"medium": "Y.m.d",
|
"medium": "Y.m.d",
|
||||||
"long": "Y.m.d h:i",
|
"long": "Y.m.d h:i",
|
||||||
"very_long": "Y.m.d h:i:s"
|
"very_long": "Y.m.d h:i:s"
|
||||||
|
},
|
||||||
|
"precision": {
|
||||||
|
"very_short": 0,
|
||||||
|
"short": 1,
|
||||||
|
"medium": 2,
|
||||||
|
"long": 3,
|
||||||
|
"very_long": 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -50,6 +50,7 @@
|
||||||
"tablespoon": "Metric tblsp",
|
"tablespoon": "Metric tblsp",
|
||||||
"glass": "Metric cup"
|
"glass": "Metric cup"
|
||||||
},
|
},
|
||||||
|
"timezone": "America/New_York",
|
||||||
"datetime": {
|
"datetime": {
|
||||||
"very_short": "d.m",
|
"very_short": "d.m",
|
||||||
"short": "m.y",
|
"short": "m.y",
|
||||||
|
|
|
||||||
|
|
@ -50,11 +50,19 @@
|
||||||
"tablespoon": "Metric tblsp",
|
"tablespoon": "Metric tblsp",
|
||||||
"glass": "Metric cup"
|
"glass": "Metric cup"
|
||||||
},
|
},
|
||||||
|
"timezone": "Europe/Rome",
|
||||||
"datetime": {
|
"datetime": {
|
||||||
"very_short": "d.m",
|
"very_short": "d.m",
|
||||||
"short": "m.y",
|
"short": "m.y",
|
||||||
"medium": "Y.m.d",
|
"medium": "Y.m.d",
|
||||||
"long": "Y.m.d h:i",
|
"long": "Y.m.d h:i",
|
||||||
"very_long": "Y.m.d h:i:s"
|
"very_long": "Y.m.d h:i:s"
|
||||||
|
},
|
||||||
|
"precision": {
|
||||||
|
"very_short": 0,
|
||||||
|
"short": 1,
|
||||||
|
"medium": 2,
|
||||||
|
"long": 3,
|
||||||
|
"very_long": 5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -304,6 +304,7 @@ class Localization implements \JsonSerializable
|
||||||
$this->setArea($locale['area'] ?? []);
|
$this->setArea($locale['area'] ?? []);
|
||||||
$this->setVolume($locale['volume'] ?? []);
|
$this->setVolume($locale['volume'] ?? []);
|
||||||
$this->setPrecision($locale['precision'] ?? []);
|
$this->setPrecision($locale['precision'] ?? []);
|
||||||
|
$this->setTimezone($locale['timezone'] ?? 'America/New_York');
|
||||||
$this->setDatetime($locale['datetime'] ?? []);
|
$this->setDatetime($locale['datetime'] ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user