Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
kengo-k committed Jun 1, 2024
1 parent 46af402 commit 5f55be6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/get/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { load } from 'js-yaml';
import { z } from 'zod';
import { Octokit } from '@octokit/rest';
import { format } from 'date-fns';
import { utcToZonedTime } from 'date-fns-tz'
import { toZonedTime } from 'date-fns-tz'

const schema = z.object({
path: z.string(),
Expand Down Expand Up @@ -57,7 +57,7 @@ async function main() {
}
if (argObj.with_timestamp) {
const now = new Date();
const formattedDate = format(utcToZonedTime(now, timezone), 'yyyyMMddHHmm');
const formattedDate = format(toZonedTime(now, timezone), 'yyyyMMddHHmm');
imageTags.push(formattedDate);
}
if (argObj.with_commit_sha) {
Expand Down

0 comments on commit 5f55be6

Please sign in to comment.