esoftplay-event 0.0.1-c → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/event/detail.tsx CHANGED
@@ -24,41 +24,6 @@ import React, { useEffect } from 'react';
24
24
  import { Linking, Pressable, Text, TouchableOpacity, View } from 'react-native';
25
25
  import MapView, { Marker } from 'react-native-maps';
26
26
 
27
- function timezoneCorrection(input: string | Date, timezone: string): string {
28
- const tzMap: Record<string, string> = {
29
- 'GMT+7': 'Asia/Jakarta',
30
- 'GMT+8': 'Asia/Singapore',
31
- 'GMT+9': 'Asia/Tokyo'
32
- };
33
-
34
- const tzString = tzMap[timezone] || 'Asia/Jakarta';
35
-
36
- let date: Date;
37
- if (typeof input === 'string') {
38
- const iso = input.replace(' ', 'T') + '+07:00';
39
- date = new Date(iso);
40
- } else {
41
- date = input;
42
- }
43
-
44
- const options: Intl.DateTimeFormatOptions = {
45
- timeZone: tzString,
46
- year: 'numeric',
47
- month: '2-digit',
48
- day: '2-digit',
49
- hour: '2-digit',
50
- minute: '2-digit',
51
- second: '2-digit',
52
- hour12: false,
53
- };
54
-
55
- const formatted = date.toLocaleString('en-GB', options)
56
- const [datePart, timePart] = formatted.split(', ')
57
- const [day, month, year] = datePart.split('/')
58
-
59
- return `${year}-${month}-${day} ${timePart}`
60
- }
61
-
62
27
  export interface EventDetailProps {
63
28
 
64
29
  }
@@ -291,7 +256,7 @@ export default function m(props: EventDetailProps): any {
291
256
  <View style={{ height: 35, borderRadius: 17, backgroundColor: LibStyle.colorLightGrey, justifyContent: 'center', alignItems: 'center', paddingHorizontal: 9 }} >
292
257
  <Text allowFontScaling={false} style={{ fontFamily: "ArialBold", fontSize: 12, textAlign: "center", textAlignVertical: 'center', color: 'black', marginHorizontal: 10 }} >
293
258
  {
294
- esp.lang("event/detail", "text_book_on", moment(result.start_booking).serverFormat('DD MMMM YYYY H:mm:ss', result?.timezone), result?.timezone_locale || "")
259
+ esp.lang("event/detail", "text_book_on", moment(result.start_booking).serverFormat('DD MMMM YYYY H:mm:ss'))
295
260
  }
296
261
  </Text>
297
262
  </View>
package/id.json CHANGED
@@ -533,7 +533,7 @@
533
533
  "start_from": "mulai dari %s",
534
534
  "tb_announce": "To Be Announced",
535
535
  "text_about_event": "Tentang Acara",
536
- "text_book_on": "Booking On %s %s",
536
+ "text_book_on": "Booking On %s",
537
537
  "text_booking_end": "Booking Tiket Telah Berakhir",
538
538
  "text_buy_ticket": "Beli Tiket",
539
539
  "text_event_cat": "Kategori Event",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay-event",
3
- "version": "0.0.1-c",
3
+ "version": "0.0.1",
4
4
  "description": "event module on esoftplay framework",
5
5
  "main": "index.js",
6
6
  "scripts": {