Skip to content

Commit

Permalink
fix: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
YUCLing committed Oct 4, 2024
1 parent cd880d7 commit 486de88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions framework/core/js/src/common/helpers/fullTime.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dayjs from 'dayjs';
import type Mithril from 'mithril';
import app from "../app";
import app from '../app';

/**
* The `fullTime` helper displays a formatted time string wrapped in a <time>
Expand All @@ -10,7 +10,7 @@ export default function fullTime(time: Date): Mithril.Vnode {
const d = dayjs(time);

const datetime = d.format();
const full = app.translator.formatDateTime(d, "core.lib.datetime_formats.full_time");
const full = app.translator.formatDateTime(d, 'core.lib.datetime_formats.full_time');

return (
<time pubdate datetime={datetime}>
Expand Down
4 changes: 2 additions & 2 deletions framework/core/js/src/common/helpers/humanTime.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dayjs from 'dayjs';
import type Mithril from 'mithril';
import app from "../app";
import app from '../app';
import humanTimeUtil from '../utils/humanTime';

/**
Expand All @@ -12,7 +12,7 @@ export default function humanTime(time: Date): Mithril.Vnode {
const d = dayjs(time);

const datetime = d.format();
const full = app.translator.formatDateTime(d, "core.lib.datetime_formats.full_time");
const full = app.translator.formatDateTime(d, 'core.lib.datetime_formats.full_time');
const ago = humanTimeUtil(time);

return (
Expand Down

0 comments on commit 486de88

Please sign in to comment.