mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix FormattedDate timezone bug (#681)
This commit is contained in:
@@ -36,7 +36,7 @@ const Version: React.FC<IVersionProps> = ({
|
||||
<Icon icon={open ? "angle-up" : "angle-down"} className="mr-3" />
|
||||
{version} (
|
||||
{date ? (
|
||||
<FormattedDate value={new Date(Date.parse(date))} />
|
||||
<FormattedDate value={date} timeZone="utc" />
|
||||
) : (
|
||||
<FormattedMessage
|
||||
defaultMessage="Development Version"
|
||||
|
||||
@@ -28,6 +28,9 @@ const markup = `
|
||||
* Show rating as stars in scene page.
|
||||
* Add reload scrapers button.
|
||||
|
||||
### 🐛 Bug fixes
|
||||
* Fix formatted dates using incorrect timezone.
|
||||
|
||||
`;
|
||||
|
||||
export default () => <ReactMarkdown source={markup} />;
|
||||
|
||||
@@ -70,7 +70,11 @@ export const SceneDetailPanel: React.FC<ISceneDetailProps> = (props) => {
|
||||
</div>
|
||||
{props.scene.date ? (
|
||||
<h5>
|
||||
<FormattedDate value={props.scene.date} format="long" />
|
||||
<FormattedDate
|
||||
value={props.scene.date}
|
||||
format="long"
|
||||
timeZone="utc"
|
||||
/>
|
||||
</h5>
|
||||
) : undefined}
|
||||
{props.scene.rating ? (
|
||||
|
||||
Reference in New Issue
Block a user